build: switch to yarn #112
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 | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [18, 20] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# pulls all commits (needed for lerna to correctly version) | |
# see https://stackoverflow.com/a/60184319/9285308 & https://github.com/actions/checkout | |
fetch-depth: "0" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "${{ matrix.node_version }}" | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Test | |
run: yarn test |