portails/.github/workflows/node.js-ci.yml

34 lines
626 B
YAML
Raw Normal View History

2020-12-03 16:07:04 +01:00
name: Hyas CI
2020-11-05 10:09:20 +01:00
on:
push:
branches: master
2020-11-05 10:09:20 +01:00
pull_request:
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]
node: [14.x, 16.x]
2020-11-05 10:09:20 +01:00
steps:
- name: Check out Hyas project
uses: actions/checkout@v2
2020-11-05 10:09:20 +01:00
- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
2020-11-05 10:18:10 +01:00
with:
node-version: ${{ matrix.node }}
2020-11-05 10:09:20 +01:00
- name: Install dependencies
run: npm ci
- name: Run Hyas test script
2020-11-05 10:09:20 +01:00
run: npm test
2020-11-05 10:09:20 +01:00
- name: Build production website
run: npm run build