Skip to content

Commit 9dc6628

Browse files
committed
chore: add workflow to test pull requests if they built
1 parent 30d80ac commit 9dc6628

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Main
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test-build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version-file: .nvmrc
16+
cache: npm
17+
cache-dependency-path: package-lock.json
18+
- name: Install dependencies
19+
run: npm install
20+
- name: Build website
21+
run: npm run build

0 commit comments

Comments
 (0)