Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [SIG-583]: jest coverage setup #4910

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Test jest coverage report page setup
SagarRajput-7 committed Apr 24, 2024
commit 35b1f4257cc65c7a0ba794df32e439c9b7549dfa
45 changes: 45 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# A workflow for deploying the Unit Tests coverage report to GitHub Pages
name: Deploy coverage report to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ['develop']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: cd frontend && npm install -g yarn && yarn
- run: yarn
- run: yarn coverage:combined
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './coverage/lcov-report'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1