Skip to content

Commit 4fd4238

Browse files
committed
Try enabling GH workflows
1 parent 5e49f8c commit 4fd4238

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
groups:
8+
github-actions:
9+
patterns:
10+
- "*"

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- "README.md"
8+
- "release-notes/*"
9+
pull_request:
10+
branches:
11+
- master
12+
permissions:
13+
contents: read
14+
jobs:
15+
build:
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
# Alas, JDK14 can't be yet used while build is for Java 6
21+
java_version: ['8', '11']
22+
os: ['ubuntu-20.04']
23+
env:
24+
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
25+
steps:
26+
- uses: actions/checkout@v4.1.0
27+
- name: Set up JDK
28+
uses: actions/setup-java@v3.13.0
29+
with:
30+
distribution: "temurin"
31+
java-version: ${{ matrix.java_version }}
32+
cache: 'maven'
33+
- name: Build
34+
run: ./mvnw -B -q -ff -ntp verify
35+
- name: Generate code coverage
36+
if: github.event_name != 'pull_request' && matrix.java_version == '8'
37+
run: ./mvnw -B -q -ff -ntp test
38+
- name: Publish code coverage
39+
if: github.event_name != 'pull_request' && matrix.java_version == '8'
40+
uses: codecov/codecov-action@v3
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
file: ./target/site/jacoco/jacoco.xml
44+
flags: unittests

0 commit comments

Comments
 (0)