github.com/kaiiak/zaptext@v0.0.0-20220617014548-4ce28ef7833b/.github/workflows/go.yml (about) 1 name: build 2 3 on: 4 push: 5 branches: [master, release-*] 6 pull_request: 7 branches: [master, release-*] 8 9 jobs: 10 golangci: 11 strategy: 12 matrix: 13 go-version: [1.16.x] 14 name: golangci-lint 15 runs-on: ubuntu-latest 16 steps: 17 - uses: actions/checkout@v2 18 - name: golangci-lint 19 uses: golangci/golangci-lint-action@v2 20 with: 21 # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. 22 version: v1.31 23 build: 24 name: Build 25 runs-on: ubuntu-latest 26 steps: 27 - name: Set up Go 1.x 28 uses: actions/setup-go@v2 29 with: 30 go-version: ^1.13 31 id: go 32 33 - name: Check out code into the Go module directory 34 uses: actions/checkout@v2 35 36 - name: Get dependencies 37 run: | 38 go get -v -t -d ./... 39 if [ -f Gopkg.toml ]; then 40 curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh 41 dep ensure 42 fi 43 - name: Check 44 run: go vet ./... 45 46 # - name: Build 47 # run: go build -v . 48 49 - name: Test 50 run: go test -cover -tags test -race -timeout 30s ./...