-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 1.18 KB
/
ci.yml
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
name: CI
on: [push]
jobs:
build:
name: Continuous Deployment
runs-on: ubuntu-latest
steps:
# - name: 'Updating Upun'
# run: sudo apt-get update && sudo apt-get install -y libgbm-dev
- name: 'Checkout Repository'
uses: actions/checkout@v2
- name: 'Setup Node'
uses: actions/setup-node@v2
with:
node-version: '14'
- name: 'Setup Chrome'
uses: browser-actions/setup-chrome@latest
- name: 'Install and Build'
run: |
yarn
cd examples/create-react-app-typescript-example
yarn
cd -
yarn types
yarn lint
yarn build
- name: 'Run Tests'
run: CHROMIUM_BIN=$(which chrome) yarn test
- name: 'Generate Documentation Website'
run: yarn docs:generate
- name: Deploy Documentation Website 🚀
if: github.ref == 'refs/heads/master'
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: documentation-website # The folder the action should deploy.