File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,27 +3,25 @@ name: GitHub Actions ACD Java SDK
33on : [push, pull_request]
44
55jobs :
6- verify :
6+ build_test :
77 runs-on : ubuntu-latest
8+ strategy :
9+ fail-fast : false
10+ matrix :
11+ java-version :
12+ - 8
13+ - 11
814 steps :
915 - uses : actions/checkout@v3
1016
1117 - uses : actions/setup-java@v3
1218 with :
13- java-version : ' 8 '
19+ java-version : ${{ matrix.java-version }}
1420 distribution : ' adopt'
21+
1522 - name : Install Dependencies
1623 run : mvn install
1724
18- test :
19- runs-on : ubuntu-latest
20- steps :
21- - uses : actions/checkout@v3
22-
23- - uses : actions/setup-java@v3
24- with :
25- java-version : ' 8'
26- distribution : ' adopt'
2725 - name : Building Project
2826 run : mvn clean compile
2927
4240
4341 release :
4442 runs-on : ubuntu-latest
45- needs : [verify, test]
43+ needs : build_test
4644 if : " github.event_name == 'push' && github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message, 'chore')"
4745 steps :
4846 - name : Setup Extensions
5351 - name : Setup Node
5452 uses : actions/setup-node@v1
5553 with :
56- node-version : ' 14 '
54+ node-version : ' 18 '
5755
5856 - name : Install Semantic Release dependencies
5957 run : |
6967 env :
7068 GH_TOKEN : ${{ secrets.GH_TOKEN }}
7169 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72- run : echo ::set-output name= NEXT_RELEASE:: $(npx semantic-release --dry-run | grep -oP "Published release \K[0-9]+\.[0-9]+\.[0-9]+") # null if no published release
70+ run : echo " NEXT_RELEASE= $(npx semantic-release --dry-run | grep -oP "Published release \K[0-9]+\.[0-9]+\.[0-9]+")" >> $GITHUB_OUTPUT
7371
7472 - name : Publish to git releases and tags
7573 if : ${{ steps.next_release.outputs.NEXT_RELEASE != null }}
You can’t perform that action at this time.
0 commit comments