-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged branch idea243.release into idea243.x
- Loading branch information
Showing
1 changed file
with
23 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,31 @@ | ||
name: Scala Plugin Build & Test | ||
|
||
on: | ||
push: | ||
branches: [ idea242.x idea243.x ] | ||
branches: [ idea243.x ] | ||
pull_request: | ||
branches: [ idea242.x idea243.x ] | ||
branches: [ idea243.x ] | ||
|
||
jobs: | ||
build_and_test: | ||
|
||
name: Scala Plugin Build & Test | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
JAVA_OPTS: -Xmx8192m -XX:ReservedCodeCacheSize=512m | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- name: Install JDK 8 | ||
run: jabba install [email protected] | ||
- name: Install JDK 11 | ||
run: jabba install [email protected] | ||
- name: Cache coursier cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.coursier/cache | ||
key: ${{ runner.os }}-coursier-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/**/*.scala') }} | ||
restore-keys: | | ||
${{ runner.os }}-coursier-cache-${{ hashFiles('**/*.sbt') }} | ||
${{ runner.os }}-coursier-cache | ||
- name: Cache ivy cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.ivy2/cache | ||
key: ${{ runner.os }}-ivy-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/**/*.scala') }} | ||
restore-keys: | | ||
${{ runner.os }}-ivy-cache-${{ hashFiles('**/*.sbt') }} | ||
${{ runner.os }}-ivy-cache | ||
- name: Cache sbt | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/**/*.scala') }} | ||
restore-keys: | | ||
${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }} | ||
${{ runner.os }}-sbt | ||
- name: Cache IntelliJ IDEA SDK | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.ScalaPluginIC/sdk | ||
key: ${{ runner.os }}-idea-${{ hashFiles('project/**/*.scala') }} | ||
restore-keys: | | ||
${{ runner.os }}-idea | ||
- name: compile & package | ||
run: sbt -no-colors clean packagePlugin test:compile | ||
- name: typechecker tests | ||
run: sbt -no-colors runTypeInferenceTests | ||
- name: assorted tests | ||
run: sbt -no-colors runFastTests | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: | | ||
8 | ||
11 | ||
17 | ||
- uses: sbt/setup-sbt@v1 | ||
- uses: coursier/cache-action@v6 | ||
- name: Compile and package | ||
run: sbt clean packageArtifact Test/compile | ||
- name: Run internationalization bundle tests | ||
run: sbt runJUnit5Tests | ||
- name: Run typechecker tests | ||
run: sbt runTypeInferenceTests | ||
- name: Run assorted tests | ||
run: sbt runFastTests |