Skip to content

Commit

Permalink
try fix: start server before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zen-cronic committed Dec 7, 2023
1 parent 267da89 commit 906b290
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ jobs:
run: npm ci
working-directory: server

- name: Start server
run: |
npm start &
sleep 10
working-directory: server
env:
NODE_ENV: test
TEST_MONGODB_URI: ${{ secrets.TEST_MONGODB_URI }}
TEST_ALLOWED_ORIGIN: ${{secrets.TEST_ALLOWED_ORIGIN}}


- name: Run server tests
run: npm test
working-directory: server
Expand Down

0 comments on commit 906b290

Please sign in to comment.