fix: add http port test to CI script, enable on push

This commit is contained in:
Tha_14 2022-12-26 23:57:01 +02:00 committed by GitHub
parent 5917dab890
commit 1fe7e1ccce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,7 @@
name: run-docker-compose-workflow name: run-docker-compose-workflow
on: #change to push when it's all working on: [push, workflow_dispatch]
workflow_dispatch:
jobs: jobs:
test: single-instance-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -11,5 +10,7 @@ jobs:
- name: Sleep until uam is running - name: Sleep until uam is running
run: sleep 100s run: sleep 100s
shell: bash shell: bash
- name: Test if port is open - name: Test if uam mining port is open
run: nc -z -w30 127.0.0.1 4156 run: nc -z -w30 127.0.0.1 4156
- name: Test if uam http statistics port is open
run: nc -z -w30 127.0.0.1 17099