[Refactor] share the getDunderProto helper #7
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: 'Tests: node.js >= 20' | |
on: [pull_request, push] | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
uses: ljharb/actions/.github/workflows/node.yml@main | |
with: | |
range: '>= 20' | |
type: minors | |
command: npm run tests-only | |
no-proto: | |
name: 'node, --disable-proto=delete' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@v2 | |
with: | |
disable-sudo: true | |
egress-policy: audit | |
allowed-endpoints: > | |
github.com:443 | |
raw.githubusercontent.com:443 | |
nodejs.org:443 | |
iojs.org:443 | |
registry.npmjs.org:443 | |
actions-results-receiver-production.githubapp.com:443 | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- uses: ljharb/actions/node/install@main | |
- run: NODE_OPTIONS=--disable-proto=delete npm run tests-only | |
- uses: codecov/[email protected] | |
finisher: | |
needs: [tests, no-proto] | |
name: 'node >= 20' | |
runs-on: ubuntu-latest | |
steps: | |
- run: true |