Skip to content

Revert "Merge pull request #20 from RichieCahill/move-bash-script-to-… #35

Revert "Merge pull request #20 from RichieCahill/move-bash-script-to-…

Revert "Merge pull request #20 from RichieCahill/move-bash-script-to-… #35

Workflow file for this run

name: zerotier
on: [ push ]
jobs:
build:
strategy:
matrix:
# os: [ ubuntu-latest ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/[email protected]
- name: zerotier
uses: ./
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"
test:
strategy:
matrix:
# os: [ ubuntu-latest ]
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"