Use actions v4 and Node 18 for tests #1021
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: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: {} | |
jobs: | |
build: | |
strategy: | |
matrix: | |
package: | |
- core | |
- core-cairo | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: 'yarn' | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install dependencies | |
run: yarn install | |
- name: Compile TypeScript | |
run: yarn tsc | |
working-directory: packages/${{matrix.package}} | |
- name: Check Svelte | |
run: yarn svelte-check | |
working-directory: packages/ui | |
- name: Run tests | |
run: yarn test | |
working-directory: packages/${{matrix.package}} |