Skip to content

Commit 9eaefe7

Browse files
authored
Add CI workflow to validate PR builds (#14)
## Why: Currently, PRs can be merged without verifying that the project builds successfully. This could introduce breaking changes to main. ## Changes: * Added `ci.yml` that runs on PRs to main * Validates the build using pnpm install + pnpm build * Closes #13
1 parent c1ed148 commit 9eaefe7

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version-file: '.nvmrc'
18+
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
22+
- name: Install dependencies
23+
run: pnpm install
24+
25+
- name: Build
26+
run: pnpm build

0 commit comments

Comments
 (0)