Skip to content

chore(deps): update actions/checkout action to v4 #1480

chore(deps): update actions/checkout action to v4

chore(deps): update actions/checkout action to v4 #1480

Workflow file for this run

name: Node CI
on:
push:
branches:
- main
tags:
- '*'
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 19.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
restore-keys: |
${{ runner.os }}-yarn-
- name: log versions
run: node --version && npm --version && yarn --version
- name: install dependencies
run: yarn --frozen-lockfile
- name: run linter
run: yarn lint
- name: check formatting
run: yarn format:ci
- name: run tests
run: yarn test