@@ -19,34 +19,46 @@ jobs:
1919 fail-fast : false
2020 steps :
2121 - name : Checkout current branch
22- 22+ 23+ - name : Setup Java
24+ 2325 with :
24- fetch-depth : 0
25- - name : Setup Scala and Java
26- uses : olafurpg/setup-scala@v10
27- - name : Cache scala dependencies
28- uses : coursier/cache-action@v5
26+ distribution : temurin
27+ java-version : 17
28+ cache : ' sbt'
2929 - name : Lint code
3030 run : sbt check
3131
32+ publishLocal :
33+ runs-on : ubuntu-20.04
34+ steps :
35+ - name : Checkout current branch
36+ 37+ - name : Setup Java
38+ 39+ with :
40+ distribution : temurin
41+ java-version : 8 # ensure it works on 8 because we publish for 8
42+ cache : ' sbt'
43+ - name : Check that building packages works
44+ run : ./sbt +publishLocal
45+
3246 test :
3347 runs-on : ubuntu-20.04
3448 strategy :
3549 fail-fast : false
3650 matrix :
37- java :
['adopt@1. 8', '[email protected] '] 51+ java : ['8', '17 ']
3852 scala : ['2.12.*', '2.13.*']
3953 steps :
4054 - name : Checkout current branch
41- 42- with :
43- fetch-depth : 0
44- - name : Setup Scala and Java
45- uses : olafurpg/setup-scala@v10
55+ 56+ - name : Setup Java
57+ 4658 with :
59+ distribution : temurin
4760 java-version : ${{ matrix.java }}
48- - name : Cache scala dependencies
49- uses : coursier/cache-action@v5
61+ cache : ' sbt'
5062 - name : Run tests
5163 run : sbt ++${{ matrix.scala }} test
5264
@@ -55,27 +67,36 @@ jobs:
5567 timeout-minutes : 60
5668 steps :
5769 - name : Checkout current branch
58- 59- - name : Setup Scala and Java
60- uses : olafurpg/setup-scala@v13
61- - name : Cache scala dependencies
62- uses : coursier/cache-action@v6
70+ 71+ - name : Setup Java
72+ 73+ with :
74+ distribution : temurin
75+ java-version : 17
76+ cache : ' sbt'
6377 - name : Check Document Generation
6478 run : sbt docs/compileDocs
6579
80+ ci :
81+ runs-on : ubuntu-20.04
82+ needs : [ lint, publishLocal, test, website ]
83+ steps :
84+ - name : Aggregate of lint, and all tests
85+ run : echo "ci passed"
86+
6687 publish :
6788 runs-on : ubuntu-20.04
68- needs : [lint, test, website ]
89+ needs : [ ci ]
6990 if : github.event_name != 'pull_request'
7091 steps :
7192 - name : Checkout current branch
72- 93+ 94+ - name : Setup Java
95+ 7396 with :
74- fetch-depth : 0
75- - name : Setup Scala and Java
76- uses : olafurpg/setup-scala@v10
77- - name : Cache scala dependencies
78- uses : coursier/cache-action@v5
97+ distribution : temurin
98+ java-version : 8 # ensure it works on 8 because we publish for 8
99+ cache : ' sbt'
79100 - name : Release artifacts
80101 run : sbt ci-release
81102 env :
0 commit comments