fix(#2986): bad start check #13024
Workflow file for this run
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: Node CI | |
on: | |
push: | |
branches: | |
- main | |
- current | |
- next | |
- 'v*' | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
dependency-review: | |
if: ${{ github.event_name == 'pull_request' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: Dependency Review | |
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4.1.3 | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
test: | |
strategy: | |
fail-fast: false | |
max-parallel: 0 | |
matrix: | |
node-version: | |
- 18 | |
- 20 | |
- 21 | |
runs-on: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
uses: ./.github/workflows/test.yml | |
with: | |
node-version: ${{ matrix.node-version }} | |
runs-on: ${{ matrix.runs-on }} | |
secrets: inherit | |
test-types: | |
name: Test TypeScript types | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Run typings tests | |
run: npm run test:typescript | |
automerge: | |
if: > | |
github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' | |
needs: | |
- dependency-review | |
- test | |
- test-types | |
- lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
actions: write | |
steps: | |
- name: Merge Dependabot PR | |
uses: fastify/github-action-merge-dependabot@9e7bfb249c69139d7bdcd8d984f9665edd49020b # v3.10.1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |