Skip to content

Commit

Permalink
Added a server integration test verification Github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
richarddubay committed Aug 8, 2024
1 parent 3d0f27b commit fba05ce
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/verify-server-integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Verify API Integration Tests

on:
pull_request:
paths:
- "server/**"
- "database/**"

defaults:
run:
working-directory: ./server

env:
DATABASE_URL: postgresql://postgres:password@localhost:5432/f1_fantasy_league_db?schema=public

jobs:
execute:
runs-on: ubuntu-latest
steps:
- name: 🛎 Checkout
uses: actions/checkout@v3
- name: pnpm-setup
uses: pnpm/action-setup@v4
with:
version: latest
- name: Install
run: pnpm i
- name: Test
run: pnpm run test:integration
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The purpose of the F1 Fantasy League app (codename: _Drift Kings_) is to provide

- A person must be able to sign in.
- A person must be able to make picks.
- An admin must be able to add and remove race/sprint/driver/constructor/race result info in the database.
- An admin must be able to add and remove race/sprint/driver/team/race result info in the database.
- A person must be able to see how they did in each Grand Prix weekend.
- A person should be able to see a leaderboard that shows the current updated standings of everyone participating.

Expand All @@ -31,12 +31,12 @@ The purpose of the F1 Fantasy League app (codename: _Drift Kings_) is to provide
### Could Have

- The app could have a pseudo-calendar showing when and where each Grand Prix (and it's associated events) will take place. This could be as simple as a list.
- The app could have an admin section where the admin could perform the tasks necessary to maintain the app. Add/delete players, add/delete race/sprint/driver/constructor/race result info, etc.
- The app could include driver/constructor logos/avatars.
- The app could have an admin section where the admin could perform the tasks necessary to maintain the app. Add/delete players, add/delete race/sprint/driver/team/race result info, etc.
- The app could include driver/team logos/avatars.

### Won't Have / Wish List

- Driver/constructor/grand prix profile pages each with info about the driver, constructor, or grand prix.
- Driver/team/grand prix profile pages each with info about the driver, team, or grand prix.
- Fantasy league history page with results for each year. Who participated, final league standings, etc.

<hr style="height: 1px" />
Expand Down
13 changes: 12 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3"
# version: "3"
services:
db:
image: postgres:latest
Expand All @@ -18,5 +18,16 @@ services:
- ./database:/flyway/sql
depends_on:
- db
api:
profiles: ["be"]
build:
context: ./server
dockerfile: Dockerfile.local
ports:
- "3000:3000"
volumes:
- ./server:/app
environment:
DATABASE_URL: "postgres://postgres:password@db:5432/f1_fantasy_league_db?schema=public"
volumes:
db:

0 comments on commit fba05ce

Please sign in to comment.