fix(ci): check files on yarn install #35
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: Tests | |
on: [pull_request] | |
jobs: | |
test: | |
name: Test on node ${{ matrix.node }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: [18, 20, 22] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use node ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org | |
- name: Enable Corepack | |
run: corepack enable | |
- run: tree . -L 2 -a | |
- name: Install dependencies | |
run: yarn install --immutable | |
- run: tree . -L 2 -a | |
- name: Build | |
run: yarn build | |
- name: Lint | |
run: yarn lint | |
- name: Test | |
run: yarn test |