2020-01-03 21:39:49 +01:00
|
|
|
name: Node CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2020-01-03 23:01:29 +01:00
|
|
|
build:
|
2020-01-03 21:39:49 +01:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-01-03 23:01:29 +01:00
|
|
|
- name: Setup Node.js 12.x
|
|
|
|
uses: actions/setup-node@v1
|
2020-01-03 21:39:49 +01:00
|
|
|
with:
|
|
|
|
node-version: 12.x
|
2020-01-03 23:01:29 +01:00
|
|
|
|
|
|
|
- name: Install and test
|
2020-01-03 21:39:49 +01:00
|
|
|
run: |
|
|
|
|
npm ci
|
|
|
|
npm test
|
|
|
|
env:
|
|
|
|
CI: true
|
2020-01-03 23:01:29 +01:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: dist
|