build(deps): bump the dependencies group across 3 directories with 15 updates #1468
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: JavaScript CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| request: | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| run: ${{ steps.filter.outputs.run }} | |
| steps: | |
| - uses: envoyproxy/toolshed/actions/github/should-run@d10938876b114aa2a001b43b43158f1bf7008f1a | |
| id: filter | |
| with: | |
| config: | | |
| paths: | |
| - 'js/**' | |
| - '.github/workflows/js.yml' | |
| js: | |
| runs-on: ubuntu-24.04 | |
| needs: request | |
| if: fromJSON(needs.request.outputs.run) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: | |
| - 20.x | |
| name: | |
| - appauth | |
| - dispatch | |
| - github/checks | |
| - github/mutex | |
| - github/script/run | |
| - hashfiles | |
| - jq | |
| - retest | |
| - torun | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm ci | |
| working-directory: js/${{ matrix.name }} | |
| - run: npm run lint | |
| working-directory: js/${{ matrix.name }} | |
| - run: npm test | |
| working-directory: js/${{ matrix.name }} | |
| - run: | | |
| npm run build | |
| if [[ $(git status --porcelain) ]]; then | |
| echo 'Built javascript does not match, did you run `npm run build`?' >&2 | |
| git status | |
| git diff | |
| exit 1 | |
| fi | |
| working-directory: js/${{ matrix.name }} | |
| status: | |
| runs-on: ubuntu-24.04 | |
| if: >- | |
| always() | |
| && github.event_name == 'pull_request' | |
| name: JavaScript | |
| needs: | |
| - request | |
| - js | |
| steps: | |
| - run: | | |
| if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" || "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then | |
| echo "One or more jobs failed or were cancelled" | |
| exit 1 | |
| fi | |
| echo "All required jobs passed or were skipped" |