Skip to content

Commit 0f0e8b1

Browse files
chore: update java versions (#167)
1 parent 90a1ab5 commit 0f0e8b1

1 file changed

Lines changed: 26 additions & 19 deletions

File tree

.github/workflows/test.yml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,42 @@
11
name: Test
22

33
on:
4-
push:
5-
branches:
6-
- "master"
7-
- "develop"
8-
pull_request:
9-
types: [ready_for_review, synchronize, opened]
4+
push:
5+
branches:
6+
- "master"
7+
- "develop"
8+
pull_request:
9+
types: [ ready_for_review, synchronize, opened ]
1010

1111
jobs:
1212
unit:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
1616
# test against latest update of each major Java version, as well as specific updates of LTS versions:
17-
java: [ 8, 9, 10, 11, 12, 13 ]
17+
java: [ 8, 11, 15, 16 ]
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
with:
23+
ref: ${{ github.head_ref }}
2124

22-
- name: Use Java Version ${{ matrix.java }}
23-
uses: actions/setup-java@v2
24-
with:
25-
java-version: ${{ matrix.java }}
26-
distribution: 'adopt'
25+
- name: Merge Conflict finder
26+
uses: olivernybroe/action-conflict-finder@v1.1
2727

28-
- name: Install
29-
run: gradle dependencies
28+
- name: Use Java Version ${{ matrix.java }}
29+
uses: actions/setup-java@v2
30+
with:
31+
distribution: 'adopt'
32+
java-version: ${{ matrix.java }}
33+
cache: 'gradle'
3034

31-
- name: Test
32-
run: gradle test && gradle jacocoTestReport
35+
- name: Install
36+
run: gradle dependencies
3337

34-
- name: Codecov
35-
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
38+
- name: Test
39+
run: gradle test && gradle jacocoTestReport
40+
41+
- name: Codecov
42+
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)