github.com/neilotoole/jsoncolor@v0.6.0/.github/workflows/go.yml (about) 1 name: Go 2 3 on: 4 push: 5 branches: [ master, dev ] 6 pull_request: 7 branches: [ master ] 8 9 jobs: 10 build: 11 strategy: 12 matrix: 13 os: [ macos-latest, ubuntu-latest, windows-latest] 14 15 runs-on: ${{ matrix.os }} 16 17 steps: 18 19 - name: Set up Go 1.x 20 uses: actions/setup-go@v2 21 with: 22 go-version: ^1.16 23 id: go 24 25 - name: Check out code into the Go module directory 26 uses: actions/checkout@v2 27 28 - name: Get dependencies 29 run: | 30 go get -v -t -d ./... 31 32 - name: Build 33 run: go build -v . 34 35 - name: Test 36 run: go test -v .