Skip to content

Merge pull request #4 from trzsz/main #17

Merge pull request #4 from trzsz/main

Merge pull request #4 from trzsz/main #17

Workflow file for this run

name: Tests
on: [push, pull_request]
env:
GOVERSION: "1.17"
jobs:
test:
name: Check code quality and run tests
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{env.GOVERSION}}
- name: Check out code
uses: actions/checkout@v2
- name: Run gofmt
run: test -z "$(gofmt -s -d *.go 2>&1)"
- name: Run golint
run: go get -u golang.org/x/lint/golint && golint -set_exit_status
- name: Run go vet
run: go vet
- name: Run tests
run: go test -v -coverprofile=coverage.out -covermode=count