-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.29 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build to GH Pages
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Select node
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Install 🔧
env:
GOOGLE_ANALITICS_ID: ${{ secrets.GOOGLE_ANALITICS_ID }}
run: |
npm install --frozen-lockfile
- name: Type check ❴❵
run: |
npm run flow-typed
- name: Test 🧪
run: |
npm run test --runInBand --no-cache
- name: Coverage 🥧
run: |
npm run test:coverage
- name: Build 🔨
env:
GOOGLE_ANALITICS_ID: ${{ secrets.GOOGLE_ANALITICS_ID }}
run: |
npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: public # The folder the action should deploy.