Skip to content

Upgrade CI Actions #1319

Upgrade CI Actions

Upgrade CI Actions #1319

Workflow file for this run

name: Node.js CI
on:
push:
branches: [master]
pull_request:
jobs:
test:
strategy:
matrix:
node: [16.x, 20.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- id: yarn-cache
run: echo "DIR=$(yarn cache dir)" >> "$GITHUB_ENV"
- uses: actions/cache@v4
with:
path: ${{ env.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn lint
- run: yarn coverage