Skip to content

Commit

Permalink
no matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Apr 3, 2024
1 parent b70b815 commit ce32e38
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
networking:
- IPv4
- IPv6

steps:
- uses: actions/checkout@v4

Expand All @@ -70,30 +64,19 @@ jobs:
run: |
docker pull ${{ env.REPO_IMAGE_TAGGED }}
- name: Run image (IPv4)
if: matrix.networking == 'IPv4'
env:
STORAGE_CONNECTION_STRING: ${{ secrets.STORAGE_CONNECTION_STRING }}
STORAGE_CONTAINER_NAME: ${{ vars.STORAGE_CONTAINER_NAME }}
run: |
docker run --network=host --sysctl net.ipv6.conf.all.disable_ipv6=0 -p 5688:5688/udp -p 5689:5689/udp -e STORAGE_CONNECTION_STRING -e STORAGE_CONTAINER_NAME -d ${{ env.REPO_IMAGE_TAGGED }}
- name: Run image (IPv6)
if: matrix.networking == 'IPv6'
- name: Run image
env:
STORAGE_CONNECTION_STRING: ${{ secrets.STORAGE_CONNECTION_STRING }}
STORAGE_CONTAINER_NAME: ${{ vars.STORAGE_CONTAINER_NAME }}
run: |
docker run --network=host --sysctl net.ipv6.conf.all.disable_ipv6=1 -p 5688:5688/udp -p 5689:5689/udp -e STORAGE_CONNECTION_STRING -e STORAGE_CONTAINER_NAME -d ${{ env.REPO_IMAGE_TAGGED }}
docker run --network=host -p 5688:5688/udp -p 5689:5689/udp -e STORAGE_CONNECTION_STRING -e STORAGE_CONTAINER_NAME -d ${{ env.REPO_IMAGE_TAGGED }}
- run: docker ps

- name: Run test client (IPv4)
if: matrix.networking == 'IPv4'
run: ./coap-client -address 127.0.0.1

- name: Run test client (IPv6)
if: matrix.networking == 'IPv6'
run: ./coap-client -address ::1 -udp6

- name: Docker logs
Expand Down

0 comments on commit ce32e38

Please sign in to comment.