Skip to content

Merge pull request #626 from NodeSecure/feat/trace-class-instance-met… #1228

Merge pull request #626 from NodeSecure/feat/trace-class-instance-met…

Merge pull request #626 from NodeSecure/feat/trace-class-instance-met… #1228

Workflow file for this run

name: Node.js CI
on:
push:
branches: master
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24.x]
fail-fast: false
steps:
- name: Harden Runner
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install --ignore-scripts
- name: Build typescript sources
run: npm run build
- name: Run lint
run: npm run lint
- name: Run tests
run: npm run test
- name: Send coverage report to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v4.0.0-beta.3
automerge:
if: >
github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
needs:
- test
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Merge Dependabot PR
uses: fastify/github-action-merge-dependabot@30c3f8f14a4f7b315ba38dbc1b793d27128fef82 # v3.12.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}