This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
Bump actions/setup-node from 3 to 4 #365
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
scala: [3.1.0, 2.13.8, 2.12.15] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Cache Coursier | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/coursier | |
key: sbt-coursier-${{ hashFiles('project/*.sbt', 'project/*.scala') }} | |
- name: Cache SBT | |
uses: actions/cache@v3 | |
with: | |
path: ~/.sbt | |
key: sbt-${{ hashFiles('project/build.properties', 'project/plugins.sbt') }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '14' | |
- run: npm install | |
- name: Run Tests | |
env: | |
JAVA_OPTS: -Xss4M -Xms2G -Xmx8G -XX:ReservedCodeCacheSize=512M -XX:MaxMetaspaceSize=8G -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC | |
JVM_OPTS: -Xss4M -Xms2G -Xmx8G -XX:ReservedCodeCacheSize=512M -XX:MaxMetaspaceSize=8G -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC | |
run: sbt ++${{ matrix.scala }} core/test awsDynamoDB/test awsS3/test awsCloudFrontSigner/test credentials/test all/test | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Cache Coursier | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/coursier | |
key: sbt-coursier-${{ hashFiles('project/*.sbt', 'project/*.scala') }} | |
- name: Cache SBT | |
uses: actions/cache@v3 | |
with: | |
path: ~/.sbt | |
key: sbt-${{ hashFiles('project/build.properties', 'project/plugins.sbt') }} | |
- name: Check Scalafmt | |
env: | |
JAVA_OPTS: -Xss4M -Xms2G -Xmx8G -XX:ReservedCodeCacheSize=512M -XX:MaxMetaspaceSize=8G -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC | |
JVM_OPTS: -Xss4M -Xms2G -Xmx8G -XX:ReservedCodeCacheSize=512M -XX:MaxMetaspaceSize=8G -XX:+CMSClassUnloadingEnabled -XX:+UseG1GC | |
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck |