diff --git a/.github/workflows/buildtest.yml b/.github/workflows/buildtest.yml new file mode 100644 index 00000000..c7086099 --- /dev/null +++ b/.github/workflows/buildtest.yml @@ -0,0 +1,24 @@ +name: Build Test +on: [push, pull_request] +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Set up Go 1.14 + uses: actions/setup-go@v1 + with: + go-version: 1.13 + + - name: Check out source code + uses: actions/checkout@v1 + + - name: Build + env: + GOPROXY: "https://proxy.golang.org" + run: go build . + + - name: Test + env: + GOPROXY: "https://proxy.golang.org" + run: go test -v .