2020-12-03 16:07:04 +01:00
|
|
|
name: Hyas CI
|
2020-11-05 10:09:20 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-06-24 08:02:21 +02:00
|
|
|
branches: master
|
2020-11-05 10:09:20 +01:00
|
|
|
pull_request:
|
2021-06-24 08:02:21 +02:00
|
|
|
branches: master
|
2020-11-05 10:09:20 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-11-05 10:49:50 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-11-05 10:09:20 +01:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-11-05 10:49:50 +01:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2021-06-24 08:02:21 +02:00
|
|
|
node: [14.x, 16.x]
|
2020-11-05 10:09:20 +01:00
|
|
|
|
|
|
|
steps:
|
2021-06-24 08:02:21 +02:00
|
|
|
- name: Check out Hyas project
|
|
|
|
uses: actions/checkout@v2
|
2020-11-05 10:09:20 +01:00
|
|
|
|
2021-06-24 08:02:21 +02:00
|
|
|
- name: Set up Node.js ${{ matrix.node }}
|
|
|
|
uses: actions/setup-node@v2
|
2020-11-05 10:18:10 +01:00
|
|
|
with:
|
2021-06-24 08:02:21 +02:00
|
|
|
node-version: ${{ matrix.node }}
|
2020-11-05 10:09:20 +01:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
2021-06-24 08:02:21 +02:00
|
|
|
|
|
|
|
- name: Run Hyas test script
|
2020-11-05 10:09:20 +01:00
|
|
|
run: npm test
|
2021-06-24 08:02:21 +02:00
|
|
|
|
2020-11-05 10:09:20 +01:00
|
|
|
- name: Build production website
|
2021-06-24 08:02:21 +02:00
|
|
|
run: npm run build
|