Skip to content

Chore: minor cleanup & pnpm switch #246

Chore: minor cleanup & pnpm switch

Chore: minor cleanup & pnpm switch #246

Workflow file for this run

name: Checks
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- name: Install NPM Dependencies
run: npm ci
- name: Check for formatting issues
run: npm run check:format
- name: Check for linting issues
run: npm run check:lint
tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- name: Install NPM Dependencies
run: pnpm i --frozen-lockfile
- name: Test
run: pnpm run test
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- name: Install NPM Dependencies
run: pnpm ci
- name: Build
run: pnpm run build