diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0bdb0a..4dde9e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,3 +27,27 @@ jobs: let count=count-1 done echo "ping success" + + test: + strategy: + matrix: + os: [ ubuntu-latest, macos-latest, windows-latest ] + runs-on: ${{ matrix.os }} + if: github.ref_name === "main" + steps: + - name: zerotier + uses: zerotier/github-action@main + with: + network_id: ${{ secrets.ZEROTIER_NETWORK_ID }} + auth_token: ${{ secrets.ZEROTIER_CENTRAL_TOKEN }} + + - name: ping host + shell: bash + run: | + count=10 + while ! ping -c 1 ${{ secrets.ZEROTIER_HOST_IP }} ; do + echo "waiting..." ; + sleep 1 ; + let count=count-1 + done + echo "ping success"