Upgrade to node20 and use @actions/glob for globbing and hashing files #821
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: 'build-test' | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Build | |
shell: bash -l {0} | |
run: | | |
npm ci | |
npm run format-check || ( npm run format && ( git diff | cat ); false ) | |
npm run all | |
- uses: ./ | |
with: | |
root: test | |
extraFiles: test/foo.sh # for the ammonite-runner version | |
- run: cd test && ./sbt compile && ./foo.sh | |
shell: bash |