go test #90
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: Go | |
on: | |
- push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: set up go 1.21 | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
id: go | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: install golangci-lint and goveralls | |
run: | | |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GITHUB_WORKSPACE v1.54.0 | |
- name: run linters | |
run: $GITHUB_WORKSPACE/golangci-lint run --config .golangci.yml ./... | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- name: generate test coverage | |
run: go test -cover ./... |