Skip to content

Commit

Permalink
chore: setup github CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cahnory committed Oct 15, 2023
1 parent 4ab5256 commit 049c453
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Continuous Integration

on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- synchronize

jobs:
ci:
runs-on: ubuntu-latest

strategy:
matrix:
node-version:
- 18.x
- 20.x

steps:
- name: Checkout to ${{ github.ref }}
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: ^8.6.2
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Build
run: pnpm build
- name: Lint
run: pnpm test:lint
if: always()
- name: Type check
run: pnpm test:types
if: always()
- name: Unit test
run: pnpm test:unit
if: always()
- name: Commit lint
run: pnpm test:commit
if: always()

0 comments on commit 049c453

Please sign in to comment.