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:
parent
74a3e98e5b
commit
7dac879682
1 changed files with 27 additions and 0 deletions
27
.github/workflows/test.yml
vendored
Normal file
27
.github/workflows/test.yml
vendored
Normal 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/)
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue