Skip to content

Commit

Permalink
Try background action
Browse files Browse the repository at this point in the history
  • Loading branch information
macieklad committed Dec 9, 2024
1 parent 6fae323 commit 2312399
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/check-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@ jobs:
cp -f repository/.github/stubs/test-server.sh app/test-server.sh
chmod +x app/test-server.sh
- name: Setup upterm session
uses: lhotari/action-upterm@v1

- name: Check if server starts
run: npx --yes start-server-and-test 'HOST=0.0.0.0 npm run dev' 3333 ./test-server.sh
- uses: JarvusInnovations/background-action@v1
name: Setup test server
with:
run: npm run dev
wait-on: |
http://localhost:3333
wait-for: 2m
log-output-if: failure
working-directory: app

- name: Check if everything is working
run: ./test-server.sh
working-directory: ./app
timeout-minutes: 1

0 comments on commit 2312399

Please sign in to comment.