fork of go-gitdiff with jj support
1name: Go
2on:
3 pull_request:
4 push:
5 branches: [master]
6
7jobs:
8 verify:
9 name: Verify
10 runs-on: ubuntu-latest
11 steps:
12 - name: Set up Go 1.13
13 uses: actions/setup-go@v1
14 with:
15 go-version: 1.13
16 id: go
17
18 - name: Set up environment
19 run: |
20 # https://github.com/actions/setup-go/issues/14
21 echo "::set-env name=GOPATH::$(go env GOPATH)"
22 echo "::add-path::$(go env GOPATH)/bin"
23
24 - name: Install golangci-lint
25 run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.1
26
27 - name: Check out code into the Go module directory
28 uses: actions/checkout@v1
29
30 - name: Lint
31 run: golangci-lint run
32
33 - name: Test
34 run: go test -v ./...
35