-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (26 loc) · 935 Bytes
/
e2e-tests.yaml
File metadata and controls
31 lines (26 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: End-to-end API Tests
on:
schedule:
- cron: "0 14 * * *" # Runs daily at 14:00 UTC
workflow_dispatch: # Allows us to manually trigger the workflow if needed
jobs:
e2e-tests:
runs-on: ubuntu-latest
strategy:
matrix:
environment: [prod] # We can add dev here to run tests on both ci & v1 endpoints
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
persist-credentials: 'false'
- name: Setup Node & NPM
uses: ./.github/actions/setup-node-npm
env:
MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN: ${{ secrets.MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN }}
- name: Run tests
env:
ENVIRONMENT: ${{ matrix.environment }}
AEM_E2E_IMPORT_API_KEY_PROD: ${{ secrets.AEM_E2E_IMPORT_API_KEY_PROD }}
AEM_E2E_IMPORT_API_KEY_DEV: ${{ secrets.AEM_E2E_IMPORT_API_KEY_DEV }}
run: npm run test-e2e