Skip to content

Commit dc91ddf

Browse files
authored
Add automatic test build on PRs (#95)
Signed-off-by: Filip Dobrovolný <[email protected]>
1 parent 14d2555 commit dc91ddf

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Repository
11+
uses: actions/checkout@v3
12+
with:
13+
ref: ${{ github.head_ref }}
14+
- name: Setup Node
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 16
18+
- name: Cache dependencies
19+
uses: actions/cache@v3
20+
with:
21+
path: ~/.npm
22+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23+
restore-keys: |
24+
${{ runner.os }}-node-
25+
- name: Install dependencies
26+
run: npm ci
27+
- name: build page
28+
run: npm run build

0 commit comments

Comments
 (0)