Skip to content

Commit

Permalink
[TEMP] #123, repair test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Sep 3, 2024
1 parent 0eca482 commit 6c924ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ jobs:
node-version: '20'
cache: 'npm'
- run: echo "NODE_ENV = $NODE_ENV"
- run: echo "KEY = $KEY"
- run: echo "USER_TEST = $USER_TEST"
- run: npm ci
- run: npm run build --if-present
- name: Start server
run: |
sudo NODE_ENV=$NODE_ENV KEY=$KEY USER_TEST=$USER_TEST npm start &
sleep 16 # Give server some time to start
sleep 15 # Give server some time to start
- name: Check if server is running
run: |
curl --fail http://localhost:80 || exit 1
Expand Down

0 comments on commit 6c924ad

Please sign in to comment.