|
6 | 6 | - "master" |
7 | 7 | - "develop" |
8 | 8 | pull_request: |
9 | | - types: [ ready_for_review, synchronize, opened ] |
| 9 | + types: [ready_for_review, synchronize, opened] |
10 | 10 |
|
11 | 11 | jobs: |
12 | 12 | format: |
13 | 13 | runs-on: ubuntu-latest |
14 | 14 |
|
15 | 15 | steps: |
16 | | - - name: Checkout code |
17 | | - uses: actions/checkout@v2 |
18 | | - with: |
19 | | - ref: ${{ github.head_ref }} |
| 16 | + - name: Checkout code |
| 17 | + uses: actions/checkout@v2 |
| 18 | + with: |
| 19 | + ref: ${{ github.head_ref }} |
20 | 20 |
|
21 | | - - name: Merge Conflict finder |
22 | | - uses: olivernybroe/[email protected] |
| 21 | + - name: Merge Conflict finder |
| 22 | + uses: olivernybroe/[email protected] |
23 | 23 |
|
24 | | - - name: Use Java Version ${{ matrix.java }} |
25 | | - uses: actions/setup-java@v2 |
26 | | - with: |
27 | | - distribution: 'adopt' |
28 | | - java-version: 8 |
29 | | - cache: 'gradle' |
| 24 | + - name: Use Java Version ${{ matrix.java }} |
| 25 | + uses: actions/setup-java@v2 |
| 26 | + with: |
| 27 | + distribution: "adopt" |
| 28 | + java-version: 8 |
| 29 | + cache: "gradle" |
30 | 30 |
|
31 | | - - name: Format code |
32 | | - run: gradle format |
| 31 | + - name: Format code |
| 32 | + run: gradle format |
33 | 33 |
|
34 | | - - name: Commit fixed code |
35 | | - uses: stefanzweifel/git-auto-commit-action@v4 |
36 | | - with: |
37 | | - commit_message: "style: resolve style guide violations" |
38 | | - branch: ${{ github.head_ref }} |
| 34 | + - name: Commit fixed code |
| 35 | + uses: stefanzweifel/git-auto-commit-action@v4 |
| 36 | + with: |
| 37 | + commit_message: "style: resolve style guide violations" |
| 38 | + branch: ${{ github.head_ref }} |
39 | 39 |
|
40 | 40 | unit: |
41 | 41 | runs-on: ubuntu-latest |
42 | 42 | strategy: |
43 | 43 | matrix: |
44 | 44 | # test against the latest update of each major Java version, as well as specific updates of LTS versions: |
45 | | - java: [ 8, 11, 15, 16, 17 ] |
| 45 | + java: [8, 11, 15, 16, 17, 18, 19, 20, 21, 22] |
46 | 46 |
|
47 | 47 | steps: |
48 | | - - name: Checkout code |
49 | | - uses: actions/checkout@v2 |
50 | | - with: |
51 | | - ref: ${{ github.head_ref }} |
| 48 | + - name: Checkout code |
| 49 | + uses: actions/checkout@v2 |
| 50 | + with: |
| 51 | + ref: ${{ github.head_ref }} |
52 | 52 |
|
53 | | - - name: Merge Conflict finder |
54 | | - uses: olivernybroe/[email protected] |
| 53 | + - name: Merge Conflict finder |
| 54 | + uses: olivernybroe/[email protected] |
55 | 55 |
|
56 | | - - name: Use Java Version ${{ matrix.java }} |
57 | | - uses: actions/setup-java@v2 |
58 | | - with: |
59 | | - distribution: 'zulu' |
60 | | - java-version: ${{ matrix.java }} |
61 | | - cache: 'gradle' |
| 56 | + - name: Use Java Version ${{ matrix.java }} |
| 57 | + uses: actions/setup-java@v2 |
| 58 | + with: |
| 59 | + distribution: "zulu" |
| 60 | + java-version: ${{ matrix.java }} |
| 61 | + cache: "gradle" |
62 | 62 |
|
63 | | - - name: Install |
64 | | - run: gradle dependencies |
| 63 | + - name: Install |
| 64 | + run: gradle dependencies |
65 | 65 |
|
66 | | - - name: Test |
67 | | - run: gradle test && gradle jacocoTestReport |
| 66 | + - name: Test |
| 67 | + run: gradle test && gradle jacocoTestReport |
68 | 68 |
|
69 | | - - name: Codecov |
70 | | - run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }} |
| 69 | + - name: Codecov |
| 70 | + run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }} |
0 commit comments