Update dependency @types/node to v22 (#177) #382
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
all: | |
name: Lint, check format, build, and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/[email protected] | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version-file: ".nvmrc" | |
- name: Setup yarn with corepack | |
run: corepack enable && corepack install | |
- name: Setup Node again with yarn cache | |
uses: actions/[email protected] | |
with: | |
node-version-file: ".nvmrc" | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Check for duplicate dependencies | |
run: yarn dedupe --check | |
- name: Setup lint cache | |
uses: actions/[email protected] | |
with: | |
path: node_modules/.cache | |
key: lint-${{ github.sha }} | |
restore-keys: lint- | |
- name: Check javascript and typescript | |
run: yarn run lint:js | |
- name: Check format | |
run: yarn run lint:format | |
- name: Build package | |
run: yarn run build | |
- name: Run Tests | |
run: yarn run test |