Skip to content

sammynave e2e tests #15

sammynave e2e tests

sammynave e2e tests #15

Workflow file for this run

name: E2E Tests
run-name: ${{github.actor}} e2e tests
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
Run-E2E-Tests:
runs-on: ubuntu-latest
container: node:20-alpine
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
# Set health checks to wait until postgres has started
env:
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
PUBLIC_FAKTORY_URL: ${{ secrets.PUBLIC_FAKTORY_URL }}
FAKTORY_URL: ${{ secrets.FAKTORY_URL }}
FAKTORY_PASSWORD: ${{ secrets.FAKTORY_PASSWORD }}
DATABASE_URL: postgres
REDIS_WS_SERVER: redis
REDIS_WS_PASSWORD: ${{ secrets.REDIS_WS_PASSWORD }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Test
run: pnpm run ci:integration