diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..973bf29 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + name: Build & Test + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.17 + + - name: Check out code + uses: actions/checkout@v2 + + - name: Download module dependencies + env: + GOPROXY: "https://proxy.golang.org" + run: go mod download + + - name: Test + run: go test -v -coverprofile=coverage.txt ./...