End-to-end API Tests #232
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: 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@v4 | |
- name: Setup Node & NPM | |
uses: ./.github/actions/setup-node-npm | |
- 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 |