@@ -2,58 +2,26 @@ name: Scala Plugin Build & Test
2
2
3
3
on :
4
4
push :
5
- branches : [ idea242.x idea243.x ]
5
+ branches : [ idea242.x, idea243.x ]
6
6
pull_request :
7
- branches : [ idea242.x idea243.x ]
7
+ branches : [ idea242.x, idea243.x ]
8
8
9
9
jobs :
10
10
build_and_test :
11
-
12
11
runs-on : ubuntu-latest
13
-
14
12
steps :
15
- - uses : actions/checkout@v2
16
- - uses : olafurpg/setup-scala@v10
17
- with :
18
-
19
- - name : Install JDK 8
20
- run :
jabba install [email protected]
21
- - name : Install JDK 11
22
- run :
jabba install [email protected]
23
- - name : Cache coursier cache
24
- uses : actions/cache@v1
25
- with :
26
- path : ~/.coursier/cache
27
- key : ${{ runner.os }}-coursier-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/**/*.scala') }}
28
- restore-keys : |
29
- ${{ runner.os }}-coursier-cache-${{ hashFiles('**/*.sbt') }}
30
- ${{ runner.os }}-coursier-cache
31
- - name : Cache ivy cache
32
- uses : actions/cache@v1
33
- with :
34
- path : ~/.ivy2/cache
35
- key : ${{ runner.os }}-ivy-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/**/*.scala') }}
36
- restore-keys : |
37
- ${{ runner.os }}-ivy-cache-${{ hashFiles('**/*.sbt') }}
38
- ${{ runner.os }}-ivy-cache
39
- - name : Cache sbt
40
- uses : actions/cache@v1
41
- with :
42
- path : ~/.sbt
43
- key : ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/**/*.scala') }}
44
- restore-keys : |
45
- ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
46
- ${{ runner.os }}-sbt
47
- - name : Cache IntelliJ IDEA SDK
48
- uses : actions/cache@v1
49
- with :
50
- path : ~/.ScalaPluginIC/sdk
51
- key : ${{ runner.os }}-idea-${{ hashFiles('project/**/*.scala') }}
52
- restore-keys : |
53
- ${{ runner.os }}-idea
54
- - name : compile & package
55
- run : sbt -no-colors clean packagePlugin test:compile
56
- - name : typechecker tests
57
- run : sbt -no-colors runTypeInferenceTests
58
- - name : assorted tests
59
- run : sbt -no-colors runFastTests
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-java@v4
15
+ with :
16
+ distribution : temurin
17
+ java-version : |
18
+ 8
19
+ 11
20
+ 17
21
+ - uses : coursier/cache-action@v6
22
+ - name : Compile and package
23
+ run : sbt -no-colors clean packagePlugin Test/compile
24
+ - name : Run typechecker tests
25
+ run : sbt -no-colors runTypeInferenceTests
26
+ - name : Run assorted tests
27
+ run : sbt -no-colors runFastTests
0 commit comments