Skip to content

e2e-staging

e2e-staging #370

Workflow file for this run

name: e2e-staging
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
env:
DATABASE_URL: postgres://pets:pets@localhost:5432/pets
REDIS_URL: redis://localhost:6379
API_BASE_URL: http://localhost:8000
S3_ASSETS_BUCKET: pets-api-staging-assets
S3_ASSETS_REGION: eu-west-2
S3_ASSETS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
S3_ASSETS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
e2e-staging:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
name: e2e-staging
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Install dependencies
uses: ./.github/actions/install
- name: generate prisma client
working-directory: apps/api
run: pnpm db:generate
- name: e2e staging
uses: ./.github/actions/e2e
with:
target: e2e-staging