-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (41 loc) · 1.29 KB
/
development.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
43
44
45
name: Development CI
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
CHROME_BIN: /usr/bin/chromium-browser
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Clean install
run: npm ci
- name: Lint
run: npm run lint
- name: Install Chromium
run: |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Test library
run: npm run test:lib:once
- name: Test showcase
run: npm run test:showcase:once
- name: Build library
run: npm run build:lib
- name: Build Github Pages
run: npm run build:gh
- name: Publish Github Pages
run: npm run publish-demo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}