Skip to content

build(deps): Bump step-security/harden-runner from 2.11.0 to 2.11.1 #1159

build(deps): Bump step-security/harden-runner from 2.11.0 to 2.11.1

build(deps): Bump step-security/harden-runner from 2.11.0 to 2.11.1 #1159

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
test-node:
name: Unit Tests
runs-on: wallet-tools-linux-medium
permissions:
checks: write
pull-requests: write
contents: read
statuses: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
with:
egress-policy: audit
- name: Setup NodeJS Environment
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: 20.x
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install dependencies
run: npm install
- name: Run tests (Forked PR)
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && !cancelled() && !failure() }}
run: npm run test
- name: Test
uses: step-security/jest-coverage-report-action@ea54c69465c9b2a498770f0b962e8b4013a3b48c # v2.3.3
if: ${{ ((github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'push') && !cancelled() && !failure() }}
with:
test-script: npm run test
- name: Upload results to Codecov
uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}