github.com/gobwas/gtrace@v0.4.3/.github/workflows/main.yml (about) 1 name: CI 2 on: 3 push: 4 branches: [ master ] 5 pull_request: 6 branches: [ master ] 7 jobs: 8 test: 9 strategy: 10 matrix: 11 os: [ ubuntu-latest, macos-latest, windows-latest ] 12 go: [ '1.14' ] 13 runs-on: ${{ matrix.os }} 14 steps: 15 - name: Checkout 16 uses: actions/checkout@v2 17 18 - name: Setup Go 19 uses: actions/setup-go@v2 20 with: 21 go-version: ${{ matrix.go }} 22 23 - name: Go Env 24 run: | 25 go env 26 27 - name: Build 28 run: | 29 go install ./cmd/gtrace 30 31 - name: Generate 32 run: | 33 gtrace -v -w ./test/test.go 34 35 - name: Test 36 run: | 37 go test -v ./test