Merge pull request #1938 from Accenture/dependabot/npm_and_yarn/devel… #558
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: Test coverage for develop branch # default-branch.yml | |
on: | |
push: | |
branches: | |
- develop | |
permissions: | |
# allow dependabot to execute this workflow | |
pull-requests: write | |
jobs: | |
hello_world_job: | |
runs-on: ubuntu-latest | |
name: Test and upload coverage | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.ref }} | |
fetch-depth: 1000 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ./package.json | |
- run: npm ci --ignore-scripts | |
- name: Run mcdev-tests with coverage | |
run: npm run coverage | |
- name: Prepare for Report Coverage (mini) | |
run: | | |
npx c8 report --reporter json-summary --exclude-after-remap false | |
- name: Upload coverage artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-coverage-output | |
path: coverage |