From 468fc933bc43b1e1f443196ee586c4d13a3e5436 Mon Sep 17 00:00:00 2001 From: Jeff Mealo Date: Sat, 30 Dec 2023 17:41:14 -0500 Subject: [PATCH] Chore: Add manually dispatched workflow to test latest published version --- .github/workflows/latest.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/test.yml | 1 - 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/latest.yml diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml new file mode 100644 index 00000000..30b9c418 --- /dev/null +++ b/.github/workflows/latest.yml @@ -0,0 +1,30 @@ +name: "Test latest published version of action" + +on: workflow_dispatch + +jobs: + success: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '16' + - uses: JarvusInnovations/background-action@latest + with: + run: | + PORT=1212 node test/server.js & + PORT=2121 node test/server.js & + PORT=3232 node test/server.js & + wait-on: | + http://localhost:1212/bar + tcp:localhost:1212 + http://localhost:2121/bar + tcp:localhost:2121 + http://localhost:3232/bar + tcp:localhost:3232 + log-output-resume: stderr + tail: true + wait-for: 5m + log-output: stderr,stdout + - run: sleep 30 # allow stderr to get output in the background diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21b6f866..a2c86f14 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,6 @@ jobs: - run: npm ci - run: npm test - # test action works running from the graph success: runs-on: ubuntu-latest steps: