-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (41 loc) · 963 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: "Tests"
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
# unit tests
jest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm test
success:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
- run: npm install
- uses: ./
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