2023-02-03 19:55:15 +01:00
|
|
|
name: Build website
|
2022-07-16 11:59:20 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-02-03 19:55:15 +01:00
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
push:
|
|
|
|
branches: [main]
|
2022-07-16 11:59:20 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-deploy:
|
|
|
|
name: Build check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-11-10 14:09:51 +01:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-03 20:00:55 +01:00
|
|
|
|
2022-07-16 11:59:20 +02:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16.x
|
|
|
|
cache: npm
|
|
|
|
|
|
|
|
- name: Install dependencies
|
2023-02-03 20:00:55 +01:00
|
|
|
run: npm ci
|
|
|
|
|
2022-07-16 11:59:20 +02:00
|
|
|
- name: Test build website
|
2022-11-10 14:09:51 +01:00
|
|
|
run: npm run build
|