2023-02-03 13:55:15 -05:00
|
|
|
name: Build website
|
2022-07-16 11:59:20 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-02-03 13:55:15 -05: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 22:09:51 +09:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-03 14:00:55 -05: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 14:00:55 -05:00
|
|
|
run: npm ci
|
|
|
|
|
2022-07-16 11:59:20 +02:00
|
|
|
- name: Test build website
|
2022-11-10 22:09:51 +09:00
|
|
|
run: npm run build
|