Skip to content

src: simplify router, add cache middleware tests #1496

src: simplify router, add cache middleware tests

src: simplify router, add cache middleware tests #1496

Workflow file for this run

name: Tests
on:
pull_request:
types:
- opened
- ready_for_review
- synchronize
- labeled
branches:
- main
permissions:
contents: read
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'synchronize' || (github.event.action == 'labeled' && github.event.label.name == 'force ci') }}
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
registry.npmjs.org:443
*.cloudflare.com:443
- name: Git Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: lts/*
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Tests
run: node --run test