Skip to content

add database to api-tests-e2e workflow #39

add database to api-tests-e2e workflow

add database to api-tests-e2e workflow #39

Workflow file for this run

name: API Tests

Check failure on line 1 in .github/workflows/api-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/api-tests.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: api-tests-e2e
on:
push:
paths:
- 'api/**'
- '.github/workflows/api-tests.yml'
- '/*' # include changes in root
- '!client/**' # exclude client folder
- '!infrastructure/**' # exclude infra folder
workflow_dispatch:
jobs:
api-tests-e2e:
name: API E2E Tests
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:13
ports:
- 5432:5432
env:
POSTGRES_USER: 4growth
POSTGRES_PASSWORD: 4growth
POSTGRES_DB: 4growth
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Node setup
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v4
- name: Install API dependencies
working-directory: api
run: pnpm install
- name: Run API E2E tests
working-directory: api
run: pnpm test:e2e