Skip to content

Add ci/cd workflow

Add ci/cd workflow #11

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches-ignore:
- main
# Cancel in-progress runs on new commits to same PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.9.0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build:ci
- name: Test
run: pnpm test