Skip to content

5.4.14

5.4.14 #1342

Workflow file for this run

name: Test
on:
push:
pull_request:
schedule: [{ cron: "0 0 10 * *" }] # monthly https://crontab.guru/#0_0_10_*_*
workflow_dispatch:
permissions: {}
jobs:
test:
uses: nodenv/.github/.github/workflows/test.yml@v6
with: { superlinter: false } # TODO renable superlinter
permissions:
contents: read
packages: read
id-token: write
security-events: write
statuses: write
# https://github.com/redhat-plumbers-in-action/differential-shellcheck
shellcheck:
permissions: { contents: read, security-events: write }
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with: { egress-policy: audit }
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with: { fetch-depth: 0 }
- uses: redhat-plumbers-in-action/differential-shellcheck@0d9e5b29625f871e6a4215380486d6f1a7cb6cdd # v5.5.5
with:
severity: error # TODO strengthen
token: ${{ secrets.GITHUB_TOKEN }}
lts:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with: { egress-policy: audit }
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- run: npm ci
- run: npm run lint:lts
checksums:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with: { egress-policy: audit }
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with: { fetch-depth: 0 }
- run: npm ci
# FIXME workaround https://github.com/actions/checkout/issues/910
- if: github.event_name == 'pull_request'
run: npm run lint:checksums -- origin/${{github.base_ref}}
- run: npm run lint:checksums -- HEAD^
if: github.event_name == 'push'