Merge pull request #811 from scalameta/update/sbt-ci-release-1.6.0 #1523
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: | |
- main | |
pull_request: | |
jobs: | |
jvm: | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [11, 8] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: "${{ matrix.java }}" | |
cache: sbt | |
- run: sbt +testsJVM/test plugin/test | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | |
GOOGLE_APPLICATION_CREDENTIALS_JSON: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }} | |
js: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 8 | |
cache: sbt | |
- run: sbt +testsJS/test | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | |
GOOGLE_APPLICATION_CREDENTIALS_JSON: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }} | |
jsdom: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 8 | |
cache: sbt | |
- run: npm install | |
- run: sbt +testsJS/test | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | |
GOOGLE_APPLICATION_CREDENTIALS_JSON: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }} | |
native: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 8 | |
cache: sbt | |
- run: sbt +testsNative/test | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | |
GOOGLE_APPLICATION_CREDENTIALS_JSON: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }} | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 8 | |
cache: sbt | |
- run: sbt +testsJVM/test | |
shell: bash | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | |
GOOGLE_APPLICATION_CREDENTIALS_JSON: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }} | |
mima: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 8 | |
cache: sbt | |
- run: sbt mimaReportBinaryIssues | |
scalafmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 8 | |
cache: sbt | |
- run: ./bin/scalafmt --check | |
docs: | |
name: Scalafix and Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 11 | |
cache: sbt | |
- run: sbt scalafixCheckAll | |
- run: sbt docs/docusaurusCreateSite | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | |
GOOGLE_APPLICATION_CREDENTIALS_JSON: | |
${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }} |