Skip to content

Update static web app route configuration #22

Update static web app route configuration

Update static web app route configuration #22

Workflow file for this run

name: Tests
on:
push:
branches: [ main, feature/** ]
pull_request:
branches: [ main ]
jobs:
frontend-tests:
name: Frontend Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test -- --run --reporter=verbose
env:
VITE_API_URL: /api
VITE_API_KEY: test-key
api-tests:
name: API Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: api/package-lock.json
- name: Install dependencies
run: |
cd api
npm ci
- name: Run tests
run: |
cd api
npm test -- --run --reporter=verbose
env:
AZURE_STORAGE_CONNECTION_STRING: UseDevelopmentStorage=true
API_SHARED_KEY: test-key