Create go.yml

This commit is contained in:
Maciej Krzyżanowski 2024-06-21 13:15:38 +02:00 committed by GitHub
parent 7b0f359a7f
commit 2468c6d077
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

34
.github/workflows/go.yml vendored Normal file
View File

@ -0,0 +1,34 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Golangci-lint
uses: golangci/golangci-lint-action@v6.0.1
- name: Go Coverage
uses: gwatts/go-coverage-action@v2.0.0
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...