Skip to content

PP-11634 Collect Notify service ID #1048

PP-11634 Collect Notify service ID

PP-11634 Collect Notify service ID #1048

Workflow file for this run

name: Github Actions Tests
on:
workflow_call:
pull_request:
permissions:
contents: read
jobs:
detect-secrets:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Detect secrets
uses: alphagov/pay-ci/actions/detect-secrets@master
unit-tests:
runs-on: ubuntu-latest
name: Unit tests
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Parse Node version
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: parse-node-version
- name: Setup
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version: "${{ steps.parse-node-version.outputs.NVMRC }}"
- name: Cache NPM packages
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Compile
run: npm run compile
- name: Run lint
run: npm run lint
- name: Run unit tests
run: npm test -- --forbid-only --forbid-pending