Check stale date on approval #167
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: Coverage | |
| on: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| jobs: | |
| coverage: | |
| name: Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Calculate Code Coverage | |
| run: npm run ci:coverage | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }} | |
| - name: Create Coverage Report for base branch | |
| run: | | |
| mv coverage coverage-pr | |
| git fetch | |
| git checkout origin/${{ github.event.pull_request.base.ref }} | |
| npm ci --ignore-scripts && npm run ci:coverage | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }} | |
| - name: Post Coverage Report | |
| uses: checkdigit/github-actions/coverage-reporter@main | |
| with: | |
| coverage-results-folder-pr: 'coverage-pr' | |
| coverage-results-folder-base: 'coverage' | |
| delete-old-comments: true |