github.com/goplus/gogen@v1.16.0/.github/workflows/go.yml (about) 1 name: Go 2 3 on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9 jobs: 10 Test: 11 strategy: 12 matrix: 13 go-version: [1.18.x, 1.21.x] 14 os: [ubuntu-latest, windows-latest, macos-latest] 15 runs-on: ${{ matrix.os }} 16 steps: 17 - uses: actions/checkout@v4 18 19 - name: Set up Go 20 uses: actions/setup-go@v5 21 with: 22 go-version: ${{ matrix.go-version }} 23 24 - name: Build 25 run: go build -v ./... 26 27 - name: Test 28 run: go test -v -coverprofile="coverage.txt" -covermode=atomic ./... 29 30 - name: Codecov 31 uses: codecov/codecov-action@v4 32 with: 33 token: ${{ secrets.CODECOV_TOKEN }}