Skip to content

Commit 0e1d0e2

Browse files
committed
use background-action
1 parent e5a4bfa commit 0e1d0e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
sudo apt-get install -y nginx
4242
4343
- name: Start Docusaurus server
44-
run: |
45-
nohup npx docusaurus serve --port 3000 --no-open &
46-
sleep 5
47-
curl -f http://localhost:3000 > /dev/null
44+
uses: JarvusInnovations/background-action@v1
45+
with:
46+
run: npx docusaurus serve --port 3000 --no-open
47+
wait-on: http://localhost:3000
4848

4949
- name: Start Nginx with project config
5050
run: |

0 commit comments

Comments
 (0)