diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e9ba3074..e5b2b860 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,11 +13,15 @@ jobs: go-version: 1.15.2 - name: Git checkout uses: actions/checkout@v2 - - name: Build and test + - name: Build + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist --snapshot + workdir: v2 + - name: Test working-directory: v2 - run: | - go get -t ./... - go test -race -coverprofile=coverage.txt -covermode=atomic ./... + run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... - name: Upload coverage uses: codecov/codecov-action@v1 build_1_9_7: