Skip to content

test(unit): leverage the expected octokit instance in index.test.js #2243

test(unit): leverage the expected octokit instance in index.test.js

test(unit): leverage the expected octokit instance in index.test.js #2243

Workflow file for this run

name: Node.js CI
'on':
push:
branches:
- master
- beta
- renovate/**
pull_request:
types:
- opened
- synchronize
jobs:
verify-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 18.17.0
- 20.6.1
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm clean-install
- run: npm test
verify-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: .nvmrc
cache: npm
- run: npm clean-install
- run: corepack npm audit signatures
- run: npm test
verify:
runs-on: ubuntu-latest
needs:
- verify-dev
- verify-matrix
if: ${{ !cancelled() }}
steps:
- name: All matrix versions passed
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Some matrix version failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1