@@ -14,42 +14,46 @@ jobs:
1414 build:
1515 env:
1616 COVER: true
17− GOPATH: ${{ github.workspace }}
1817 runs-on: ubuntu-18.04
1918 steps:
2019
21− - name: Check out code into the Go module directory
20+ - name: Check out code
2221 uses: actions/checkout@v2
23− with:
24− path: ./src/github.com/${{ github.repository }}
2522
26− - name: Set up Go 1.14
23+ - name: Set up Go 1.15
2724 uses: actions/setup-go@v2
2825 with:
29− go-version: ^1.14
26+ go-version: 1.15.x
3027 id: go
3128
3229 - name: Get dependencies
3330 run: |
34− cd src/github.com/${{ github.repository }}
35− curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.24.0
36− GO111MODULE=on go mod download
31+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0
32+ go mod download
3733 curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
3834 chmod +x ./cc-test-reporter
3935
4036 - name: Lint
4137 run: |
42− cd src/github.com/${{ github.repository }}
4338 make lint
4439
4540 - name: Build
4641 run: |
47− cd src/github.com/${{ github.repository }}
4842 make build
4943
5044 - name: Test
5145 env:
5246 CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
5347 run: |
54− cd src/github.com/${{ github.repository }}
5548 ./test.sh
49+
50+ docker:
51+ runs-on: ubuntu-18.04
52+ steps:
53+
54+ - name: Check out code
55+ uses: actions/checkout@v2
56+
57+ - name: Docker Build
58+ run: |
59+ make docker