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 6806c17
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_ENV: ${{ vars.NODE_ENV }}
KEY: ${{ secrets.KEY }}
USER_TEST: ${{ secrets.USER_TEST }}
KEY: ${{ vars.KEY }}
USER_TEST: ${{ vars.USER_TEST }}

steps:
- uses: actions/checkout@v3
Expand All @@ -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 6806c17

Please sign in to comment.