-
Notifications
You must be signed in to change notification settings - Fork 164
41 lines (35 loc) · 1.1 KB
/
build-and-deploy.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
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: Set Node Version
uses: actions/setup-node@v2
with:
node-version: 'v18.16.0'
- name: Install dependencies
run: yarn
- name: Build
run: npm run-script build:ci
- name: Install Firefox
uses: browser-actions/setup-firefox@latest
- name: Generate code coverage report
uses: GabrielBB/xvfb-action@v1
with:
run: npm run-script test:coverage
- name: Deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist/deploy