chore(deps): bump github/codeql-action/analyze from 4.36.3 to 4.37.0 #2272
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: Node.js CI | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| pull_request: | |
| env: | |
| CI: true | |
| FORCE_COLOR: 2 | |
| NODE_COV: lts/* # The Node.js version to run coveralls on | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| submodules: recursive | |
| persist-credentials: false | |
| - name: Use Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run lint | |
| test: | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| checks: write # to create new checks (coverallsapp/github-action) | |
| name: Node ${{ matrix.node }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: | |
| - 18 | |
| - 20 | |
| - lts/* | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| submodules: recursive | |
| persist-credentials: false | |
| - name: Use Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build --if-present | |
| - name: Run smoke tests | |
| run: node scripts/smoke-test.js | |
| - name: Run unit tests | |
| run: npm run unit-tests | |
| if: matrix.node != env.NODE_COV && matrix.node != 18 | |
| - name: Run unit tests with coverage | |
| run: npm run unit-tests-coverage | |
| if: matrix.node == env.NODE_COV | |
| - name: Run Coveralls | |
| uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7 | |
| if: matrix.node == env.NODE_COV | |
| continue-on-error: true | |
| with: | |
| github-token: '${{ secrets.GITHUB_TOKEN }}' |