Skip to content

cleanup readme and some dirs #55

cleanup readme and some dirs

cleanup readme and some dirs #55

Workflow file for this run

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 ./...