Use a version of path-to-regexp that isn't vulnerable to REDoS (#136) #28
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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v2 | |
# TODO this doesn't pass on Node.js 20 but it should, something with Next.js | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
- name: Install dependencies | |
run: | | |
npm ci | |
cd test; npm i | |
cd ../test-nextjs; npm i | |
cd ../test-router; npm i | |
- name: test | |
run: npm run test:once | |
- name: Install Playwright Browsers | |
working-directory: test-nextjs | |
run: npx playwright install --with-deps | |
- name: e2e test | |
working-directory: test-nextjs | |
run: npm run test |