Add linter (#9) #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
build: | |
name: Running test | |
runs-on: ubuntu-latest | |
container: golang:latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Get dependencies | |
run: go get -v -t -d ./... | |
- name: Run tests | |
run: go test ./... | |
golanci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.19' | |
cache: false | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 |