Update static web app route configuration #22
This file contains hidden or 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: 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 |