Bump cookie and express-session #6448
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
env: | |
NODE_ENV: test | |
API_CLIENT_ID: approved-premises | |
API_CLIENT_SECRET: clientsecret | |
jobs: | |
type_checking: | |
name: "Type check 🔎" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.node-version' | |
cache: 'npm' | |
- name: Installing dependencies | |
run: npm ci | |
- name: Pulling the latest type from the API repo | |
run: npm run generate-types | |
- name: Typechecking the code | |
run: npm run typecheck | |
linting: | |
name: "Linting 🔎" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.node-version' | |
cache: 'npm' | |
- name: Installing dependencies | |
run: npm ci | |
- name: Running Lint checks 🔎 | |
run: npm run lint | |
- name: Running shellcheck checks 🔎 | |
run: npm run shellcheck | |
unit_test: | |
name: "Unit testing 🧪" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.node-version' | |
cache: 'npm' | |
- name: Installing dependencies | |
run: npm ci | |
- name: Running Unit tests | |
run: npm run test:ci | |
integration_test: | |
name: "Integration testing 🧪" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.node-version' | |
cache: 'npm' | |
- name: Installing dependencies | |
run: npm ci | |
- name: Building source | |
run: npm run build | |
- name: Running Integration tests | |
run: npm run test:integration |