Skip to content

Commit

Permalink
chore: add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Mar 20, 2024
1 parent 50528a4 commit c6e16af
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v3

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Type Check
run: pnpm run typeCheck

- name: Lint
run: pnpm run format

- name: Test
run: pnpm run test
# run: pnpm run test --coverage

# - name: Upload test coverage
# uses: actions/upload-artifact@v4
# with:
# name: coverage
# path: ./coverage
# if-no-files-found: ignore

0 comments on commit c6e16af

Please sign in to comment.