Skip to content

Commit 9282b79

Browse files
committed
[build, github workflow] Rework and simplify the Scala Plugin GitHub Workflow with the latest versions of actions
1 parent 69e3fb7 commit 9282b79

File tree

1 file changed

+17
-49
lines changed

1 file changed

+17
-49
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,26 @@ name: Scala Plugin Build & Test
22

33
on:
44
push:
5-
branches: [ idea242.x idea243.x ]
5+
branches: [ idea242.x, idea243.x ]
66
pull_request:
7-
branches: [ idea242.x idea243.x ]
7+
branches: [ idea242.x, idea243.x ]
88

99
jobs:
1010
build_and_test:
11-
1211
runs-on: ubuntu-latest
13-
1412
steps:
15-
- uses: actions/checkout@v2
16-
- uses: olafurpg/setup-scala@v10
17-
with:
18-
java-version: [email protected]
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

Comments
 (0)