setup(workflow): run Code Quality → tests only on changed workspace(s)
#25
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
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| # For more information see: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow | |
| name: Workflow Quality Assurance | |
| on: | |
| push: | |
| branches: ["*"] | |
| paths: | |
| - ".github/workflows/*.yml" | |
| - ".github/scripts/*" | |
| pull_request: | |
| branches: ["*"] | |
| paths: | |
| - ".github/workflows/*.yml" | |
| - ".github/scripts/*" | |
| types: | |
| - opened | |
| - ready_for_review | |
| - reopened | |
| - synchronize | |
| permissions: | |
| contents: read | |
| jobs: | |
| run-workflow-script-tests: | |
| name: test scripts | |
| runs-on: ubuntu-slim | |
| if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} | |
| steps: | |
| # FIXME https://github.com/step-security/harden-runner/issues/627 | |
| # - name: Harden the runner (Audit all outbound calls) | |
| # uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0 | |
| # with: | |
| # egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| show-progress: false | |
| - run: node --test ./github/scripts/*.test.ts |