Skip to content

Commit 60e737e

Browse files
committed
Add GitHub Actions workflow for build and test process
1 parent 88ba96f commit 60e737e

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: ['**'] # Triggers on push to any branch
6+
pull_request:
7+
branches: ['main'] # Also run on PRs to main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20'
21+
cache: 'yarn'
22+
23+
- name: Install dependencies
24+
run: yarn install --frozen-lockfile
25+
26+
- name: Run build-all
27+
run: yarn build-all

0 commit comments

Comments
 (0)