diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..9d03a106 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,30 @@ +name: Go + +on: + push: + branches: [ v2dev ] + pull_request: + branches: [ v2dev ] + +jobs: + test-build: + name: Test & Build + strategy: + matrix: + go-version: [1.13.x, 1.14.x] + platform: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: setup go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + id: go + + - name: checkout + uses: actions/checkout@v2 + + - name: test + run: | + go mod tidy -v + go test -race ./... diff --git a/README.md b/README.md index c821e893..76007ebd 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ # MicroMDM v2 Development + +![Go](https://github.com/micromdm/micromdm/workflows/Go/badge.svg?branch=v2dev)