actually build it #59
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: 'ci' | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
permissions: write-all | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- run: npm ci | |
- run: npm run format:check >> "${GITHUB_STEP_SUMMARY}" | |
- run: npm run lint | |
- run: npm run test >> "${GITHUB_STEP_SUMMARY}" | |
- uses: ./ | |
id: code_coverage_report_action | |
if: ${{ github.actor != 'dependabot[bot]'}} | |
with: | |
filename: 'coverage/clover.xml' | |
artifact_download_workflow_names: 'ci,cron' | |
badge: true | |
- name: Add Coverage PR Comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
if: steps.code_coverage_report_action.outputs.file != '' && github.event_name == 'pull_request' && (success() || failure()) | |
with: | |
recreate: true | |
path: code-coverage-results.md |