cleanup readme and some dirs #55
Workflow file for this run
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: Continous Integration | |
on: [push, pull_request] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.21 | |
id: go | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Run goimports | |
run: | | |
go install golang.org/x/tools/cmd/goimports@latest | |
output="$($(go env GOPATH)/bin/goimports -l $(find . -type f -name "*.go" -not -path "./vendor/*"))" | |
test -z $output && exit 0 | |
$(go env GOPATH)/bin/goimports -d . | |
exit 1 | |
- name: Test | |
env: | |
GOROOT: "" | |
run: | | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.54.2 | |
./bin/golangci-lint run | |
go test -v ./... |