|
1 |
| -name: Scala Plugin Build & Test |
2 |
| - |
3 | 1 | on:
|
4 | 2 | push:
|
5 |
| - branches: [ idea242.x idea243.x ] |
| 3 | + branches: [ idea243.x ] |
6 | 4 | pull_request:
|
7 |
| - branches: [ idea242.x idea243.x ] |
| 5 | + branches: [ idea243.x ] |
8 | 6 |
|
9 | 7 | jobs:
|
10 | 8 | build_and_test:
|
11 |
| - |
| 9 | + name: Scala Plugin Build & Test |
12 | 10 | runs-on: ubuntu-latest
|
13 |
| - |
| 11 | + env: |
| 12 | + JAVA_OPTS: -Xmx8192m -XX:ReservedCodeCacheSize=512m |
14 | 13 | 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 |
| 14 | + - uses: actions/checkout@v4 |
| 15 | + - uses: actions/setup-java@v4 |
| 16 | + with: |
| 17 | + distribution: temurin |
| 18 | + java-version: | |
| 19 | + 8 |
| 20 | + 11 |
| 21 | + 17 |
| 22 | + - uses: sbt/setup-sbt@v1 |
| 23 | + - uses: coursier/cache-action@v6 |
| 24 | + - name: Compile and package |
| 25 | + run: sbt clean packageArtifact Test/compile |
| 26 | + - name: Run internationalization bundle tests |
| 27 | + run: sbt runJUnit5Tests |
| 28 | + - name: Run typechecker tests |
| 29 | + run: sbt runTypeInferenceTests |
| 30 | + - name: Run assorted tests |
| 31 | + run: sbt runFastTests |
0 commit comments