forked from leather-io/extension
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1 KB
/
gh-pages.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
46
name: GH pages
on:
push:
branches:
- 'main'
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Cache node_modules
id: cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
${{ runner.os }}-yarn
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: Build prod
run: yarn build
- name: Run jest
run: yarn test:unit
- name: Make badge maker
run: npx make-coverage-badge
- name: Publish test coverage report
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: gh-pages
folder: coverage