Skip to content

Re-use probes support - history #152

Re-use probes support - history

Re-use probes support - history #152

Workflow file for this run

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