Re-use probes support - history #152
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ["1.20"] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
name: ${{ matrix.os }} Go ${{ matrix.go }} Tests | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
cache: true | |
- name: Install dependencies | |
run: go get . | |
- name: Run tests | |
run: go test ./... -v | |
- name: Build | |
run: go build -o bin/globalping | |
- name: Test windows cmd | |
if: matrix.os == 'windows-latest' | |
run: | | |
bin\globalping.exe ping cdn.jsdelivr.net | |
bin\globalping.exe ping cdn.jsdelivr.net from @-1 | |
- name: Test windows powershell | |
if: matrix.os == 'windows-latest' | |
shell: powershell | |
run: | | |
bin\globalping.exe ping cdn.jsdelivr.net | |
bin\globalping.exe ping cdn.jsdelivr.net from @-1 | |
- name: Test windows bash | |
if: matrix.os == 'windows-latest' | |
shell: bash | |
run: | | |
./bin/globalping.exe ping cdn.jsdelivr.net | |
./bin/globalping.exe ping cdn.jsdelivr.net from @-1 | |
- name: Test macOS | |
if: matrix.os == 'macOS-latest' | |
run: | | |
./bin/globalping ping cdn.jsdelivr.net | |
./bin/globalping ping cdn.jsdelivr.net from @-1 | |
- name: Test ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
./bin/globalping ping cdn.jsdelivr.net | |
./bin/globalping ping cdn.jsdelivr.net from @-1 |