diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..b7c364d --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: test +on: [push, pull_request] +jobs: + + build: + name: Build and Test + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.17 + uses: actions/setup-go@v2 + with: + go-version: 1.17 + id: go + + - name: Check out code + uses: actions/checkout@v1 + + - name: Get dependencies + run: | + go mod download + - name: Build + run: | + go build ./... + + - name: Test + run: | + go test ./...