From a260e84d07171a25282c2fda70622428fd0b0762 Mon Sep 17 00:00:00 2001 From: Mason Williams Date: Thu, 25 Apr 2024 18:52:41 -0400 Subject: [PATCH] ci(lost-pixel): Replace sleep with wait-on for server readiness --- .github/workflows/lost-pixel.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lost-pixel.yml b/.github/workflows/lost-pixel.yml index ebe0d63ff..44ec61ec9 100644 --- a/.github/workflows/lost-pixel.yml +++ b/.github/workflows/lost-pixel.yml @@ -34,11 +34,14 @@ jobs: - name: Build Docusaurus run: pnpm run build + - name: Install wait-on + run: npm install -g wait-on + - name: Start Server run: pnpm run serve & - name: Wait for Server - run: sleep 15 + run: wait-on http://localhost:3000 - name: Lost Pixel uses: lost-pixel/lost-pixel@v3.8.0