Skip to content

Commit

Permalink
ci: Add E2E test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoh5 committed Nov 27, 2023
1 parent e9850d0 commit a5c17f8
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run E2E Tests

on: [pull_request]

jobs:
run-e2e-tests:
name: Run E2e Tests
runs-on: ubuntu-latest

services:
postgres:
image: bitnami/postgresql
ports:
- 5432:5432
environment:
- POSTGRESQL_USERNAME=docker
- POSTGRESQL_PASSWORD=docker
- POSTGRESQL_DATABASE=apisolid

steps:
- name: Download Application
uses: actions/checkout@v3

- name: Install PNPM package manager
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'

- name: Install Dependencies
run: pnpm i --frozen-lockfile

- name: Run Tests
run: pnpm test:e2e
env:
JWT_SECRET: testing
DATABASE_URL: "postgresql://docker:docker@localhost:5432/apisolid?schema=public"
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.yml

0 comments on commit a5c17f8

Please sign in to comment.