Ark
name: Check and build
on:
push:
branches:
- "main"
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use latest Node.js
uses: actions/setup-node@v3
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm check
build:
needs: check
strategy:
matrix:
node-version:
- 16
- 18
- 20
- name: Use Node.js ${{ matrix.node-version }}
node-version: ${{ matrix.node-version }}
- run: pnpm build