Skip to content

Commit

Permalink
chore: add github CI
Browse files Browse the repository at this point in the history
Adds a simple build workflow to github CI.
  • Loading branch information
43081j committed Dec 26, 2024
1 parent f8ac748 commit 84cb07b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build & Test

on:
push:
branches: [trunk]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
- name: Use pnpm
uses: pnpm/action-setup@v4
run_install: false
- name: Install
run: pnpm i
- name Build
run: pnpm run -r build

0 comments on commit 84cb07b

Please sign in to comment.