Skip to content

chore: Upgrade actions/setup-node action to v3.8.0 #1402

chore: Upgrade actions/setup-node action to v3.8.0

chore: Upgrade actions/setup-node action to v3.8.0 #1402

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [16.x, 18.x, 20.x]
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 8
- name: Use Node.js ${{ matrix.node }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- uses: actions/[email protected]
with:
path: |
node_modules
key: node-${{ matrix.node }}-${{ hashFiles('package.json', 'pnpm-lock.yaml') }}
restore-keys: |
node-${{ matrix.node }}-
- run: node -v
- run: pnpm install --frozen-lockfile
- run: pnpm test:build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: volta-cli/[email protected]
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/[email protected]
with:
path: |
node_modules
key: deps-${{ hashFiles('package.json', 'pnpm-lock.yaml') }}
restore-keys: |
deps-
- run: pnpm install --frozen-lockfile
- run: pnpm lint && pnpm pretty:ci
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: volta-cli/[email protected]
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/[email protected]
with:
path: |
node_modules
key: deps-${{ hashFiles('package.json', 'pnpm-lock.yaml') }}
restore-keys: |
deps-
- run: pnpm install --frozen-lockfile
- run: pnpm test
types:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: volta-cli/[email protected]
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/[email protected]
with:
path: |
node_modules
key: deps-${{ hashFiles('package.json', 'pnpm-lock.yaml') }}
restore-keys: |
deps-
- run: pnpm install --frozen-lockfile
- run: pnpm test:types