Skip to content

Commit

Permalink
Merge pull request #183 from JarvusInnovations/feat/fix-tail
Browse files Browse the repository at this point in the history
Chore: Add manually dispatched workflow to test latest published version
  • Loading branch information
jmealo authored Dec 30, 2023
2 parents c7bf8ff + 468fc93 commit 789873a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- run: npm ci
- run: npm test

# test action works running from the graph
success:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 789873a

Please sign in to comment.