uam-docker/.github/workflows/push.yml

38 lines
1.3 KiB
YAML
Raw Normal View History

2022-12-26 22:32:36 +01:00
name: run-docker-compose-workflow
on: [push, workflow_dispatch]
2022-12-26 22:32:36 +01:00
jobs:
single-instance-test:
2022-12-26 22:32:36 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the stack
2022-12-26 22:51:23 +01:00
run: cd uam && PBKEY=${{ secrets.PBKEY }} docker-compose up -d
2022-12-26 22:32:36 +01:00
- name: Sleep until uam is running
run: sleep 100s
shell: bash
- name: Test if uam mining port is open
2022-12-26 22:32:36 +01:00
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
2022-12-26 23:55:52 +01:00
swarm-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the stack
run: cd uam-swarm && PBKEY=${{ secrets.PBKEY }} docker-compose up -d
- name: Sleep until uam is running
run: sleep 280s
shell: bash
- name: Test if uam_1 mining port is open
run: nc -z -w30 127.0.0.1 4160
- name: Test if uam_1 http statistics port is open
run: nc -z -w30 127.0.0.1 17100
- name: Test if uam_2 mining port is open
run: nc -z -w30 127.0.0.1 4161
- name: Test if uam_2 http statistics port is open
run: nc -z -w30 127.0.0.1 17101
- name: Test if uam_3 mining port is open
run: nc -z -w30 127.0.0.1 4162
- name: Test if uam_3 http statistics port is open
run: nc -z -w30 127.0.0.1 17102