Repository navigation
ci: pass GitHub context to run steps via env vars (script injection) #406
Workflow file for this run
This file contains hidden or 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: Unit-Test-CI | |
| on: | |
| push: | |
| branches: [ master, development ] | |
| pull_request: | |
| branches: [ master, development ] | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: ArtiomTr/jest-coverage-report-action@7f750dd50f5585533321eb7ebc482b936b49a5d4 # v2 | |
| id: coverage-utils-js | |
| with: | |
| output: comment, report-markdown | |
| - uses: marocchino/sticky-pull-request-comment@v2 | |
| with: | |
| header: Contentstack Utils JS Coverage | |
| recreate: true | |
| message: ${{ steps.coverage-utils-js.outputs.report }} | |
| - name: Test Report | |
| uses: dorny/test-reporter@v1 | |
| if: success() || failure() | |
| with: | |
| name: JEST Tests | |
| path: reports/junit/jest-*.xml | |
| reporter: jest-junit | |
| fail-on-error: true |