-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a server integration test verification Github action.
- Loading branch information
1 parent
3d0f27b
commit fba05ce
Showing
3 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters