Skip to content

Public API Tests

Public API Tests #6151

Workflow file for this run

name: Public API Tests
on:
deployment_status:
jobs:
api-tests:
timeout-minutes: 30
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build utils
working-directory: packages/utils
run: pnpm build
- name: Run tests
working-directory: apps/web
env:
E2E_BASE_URL: ${{ github.event.deployment_status.environment_url }}
E2E_TOKEN: ${{ secrets.E2E_TOKEN }}
E2E_TOKEN_OLD: ${{ secrets.E2E_TOKEN_OLD }}
E2E_USER_ID: ${{ secrets.E2E_USER_ID }}
E2E_USER_ID_OLD: ${{ secrets.E2E_USER_ID_OLD }}
E2E_WORKSPACE_ID: ${{ secrets.E2E_WORKSPACE_ID }}
run: pnpm test