-
Notifications
You must be signed in to change notification settings - Fork 71
51 lines (40 loc) · 1.13 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
47
48
49
50
51
name: GH pages
on:
push:
branches:
- 'main'
env:
STX_NETWORK: mainnet
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Add required Linux dependencies
uses: ./.github/actions/linux-deps
- uses: actions/setup-node@v3
with:
node-version: 18
- 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: rm -rf docs/coverage && yarn test --coverage
- name: Make coverage badge
run: npx make-coverage-badge
- name: Publish test coverage report
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: coverage