Skip to content

chore(deps): update actions/setup-node action to v4 #2311

chore(deps): update actions/setup-node action to v4

chore(deps): update actions/setup-node action to v4 #2311

Workflow file for this run

name: test
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: "node_modules"
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Test
run: yarn test
- name: Coverage
run: yarn codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}