build(deps): bump @babel/preset-env from 7.25.9 to 7.26.0 (#126) #99
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: Coverage report | |
on: | |
push: | |
branches: [ main ] | |
# allow manual workflow dispatch from actions tab | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
Deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.output.page_url }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Coverage node version | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/configure-pages@v5 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Node.js modules cache | |
uses: actions/cache@v4 | |
id: modules-cache | |
with: | |
path: ${{ github.workspace }}/node_modules | |
key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.node-version }}-modules | |
- name: Install Node.js packages | |
if: ${{ steps.modules-cache.outputs.cache-hit != 'true' }} | |
run: npm install | |
- name: Setup coverage report | |
run: npm run test:coverage | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './coverage/lcov-report' | |
- name: Deploy to pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |