Merge remote-tracking branch 'origin/main' into dev #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |