Update to Node 20 #253
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: Continuous Integration | |
on: | |
push: | |
branches: [main] | |
tags: ["v*"] | |
pull_request: | |
branches: [main] | |
jobs: | |
scalafmt: | |
name: Scalafmt and Scalafix | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: sbt-plugin | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: coursier/setup-action@v1.2.0-M3 | |
with: | |
apps: scalafmt sbt | |
- run: scalafmt --test | |
- run: sbt 'scalafixAll -test' | |
test-sbt: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
jvm: ['adopt:1.8', 'adopt:1.11', 'temurin:1.17'] | |
fail-fast: false | |
name: Test sbt plugin on ${{ matrix.os }} - ${{ matrix.jvm }} | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: write | |
defaults: | |
run: | |
working-directory: sbt-plugin | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: coursier/setup-action@v1.2.0-M3 | |
with: | |
jvm: ${{ matrix.jvm }} | |
apps: sbt | |
- run: sbt test | |
- run: sbt scripted | |
test-action: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
fail-fast: false | |
name: Test Github action on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sbt publishLocal | |
working-directory: sbt-plugin | |
- run: npm version | |
- run: npm install | |
- run: npm run all | |
- name: Run sbt-dependency-submission | |
uses: ./ | |
id: dependency-submission | |
with: | |
working-directory: sbt-plugin | |
sbt-plugin-version: 2.2.0-SNAPSHOT | |
- name: Check outputs | |
run: | | |
echo ${{ steps.dependency-submission.outputs.submission-id }} | |
echo ${{ steps.dependency-submission.outputs.submission-api-url }} | |
echo ${{ steps.dependency-submission.outputs.snapshot-json-path }} | |
- name: Log snapshot JSON | |
run: | | |
cat ${{ steps.dependency-submission.outputs.snapshot-json-path }} | jq | |