Skip to content

Commit beab51d

Browse files
committed
Add workflow for verifying and previewing PR
1 parent c1134b0 commit beab51d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/verify.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Verify PR build
2+
3+
on:
4+
pull_request:
5+
branches: [ 'main' ]
6+
7+
concurrency:
8+
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
9+
cancel-in-progress: true
10+
11+
jobs:
12+
verify:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Set up Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: lts/*
21+
cache: 'npm'
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Build
25+
run: npm run build
26+
- name: Upload artifact
27+
uses: 'actions/upload-artifact@v4'
28+
with:
29+
name: 'gh-pages-preview'
30+
path: './spock-website/dist'

0 commit comments

Comments
 (0)