Skip to content

refactor(workflows): add pnpm/action-setup@v2 and node-versions to GH… #4

refactor(workflows): add pnpm/action-setup@v2 and node-versions to GH…

refactor(workflows): add pnpm/action-setup@v2 and node-versions to GH… #4

Workflow file for this run

---
name: CI
env:
HUSKY: 0
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Check Format
run: pnpm format:check
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Build
run: pnpm build