go.mway.dev/math@v0.3.4-0.20220903004814-3c8fcf9df0ca/.github/workflows/go.yml (about) 1 name: Go 2 3 on: 4 push: 5 branches: [ main, master ] 6 pull_request: 7 branches: [ main, master ] 8 9 jobs: 10 11 build: 12 runs-on: ubuntu-latest 13 steps: 14 - uses: actions/checkout@v3 15 16 - name: Set up Go 17 uses: actions/setup-go@v3 18 with: 19 go-version: 1.18 20 21 - name: Build 22 run: go build -v ./... 23 24 - name: Test 25 run: go test -v -race -coverprofile cover.out ./... 26 27 - name: Prepare Coverage 28 run: go tool cover -html=cover.out -o cover.html 29 30 - name: Upload Coverage 31 uses: codecov/codecov-action@v3.0.0