1
0
Fork 0
mirror of https://github.com/pnx/pinger.git synced 2026-06-16 03:24:54 +02:00

adding .github/workflows/test.yml

This commit is contained in:
Henrik Hautakoski 2025-05-26 19:42:51 +02:00
parent 74a3e98e5b
commit 7dac879682

27
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Fmt
run: go fmt $(go list ./... | grep -v /vendor/)
- name: Vet
run: go vet $(go list ./... | grep -v /vendor/)
- name: Test
run: go test -race $(go list ./... | grep -v /vendor/)