Skip to content

Commit 3cfa84d

Browse files
Add basic GH Actions for build on PR (#4)
1 parent 36856fe commit 3cfa84d

File tree

3 files changed

+34
-63
lines changed

3 files changed

+34
-63
lines changed

.github/workflows/build.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
16+
with:
17+
node-version: 22
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Build
23+
run: npm run build

.github/workflows/build.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/on-pr.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: On Pull Request
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
9+
jobs:
10+
build:
11+
uses: ./.github/workflows/build.yaml

0 commit comments

Comments
 (0)