Exclude /unrestricted/* from being served/cached by the service worker #190 #1481
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: Lint & Test | |
on: [push, pull_request] | |
env: | |
DISABLE_SERVICE_WORKER: "true" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Read .nvmrc | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
id: nvm | |
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
cache: "npm" | |
- name: Install dependencies 🔧 | |
run: npm ci | |
- name: Lint 🔍 | |
run: npm run lint | |
- name: Cypress 🔬 | |
uses: cypress-io/github-action@v6 | |
with: | |
build: npm run build | |
start: npx http-server dist/ -p 3000 -s | |
wait-on: http://localhost:3000 | |
config: baseUrl=http://localhost:3000 |