github.com/storacha/go-ucanto@v0.7.2/.github/workflows/test.yml (about) 1 # This workflow will build a golang project 2 # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go 3 4 name: Test 5 6 on: 7 push: 8 branches: ['main'] 9 pull_request: 10 branches: ['main'] 11 12 jobs: 13 test: 14 name: Run tests and collect coverage 15 runs-on: ubuntu-latest 16 steps: 17 - uses: actions/checkout@v3 18 19 - name: Set up Go 20 uses: actions/setup-go@v4 21 with: 22 go-version: '1.24' 23 24 - name: Test 25 run: go test -v -coverprofile=coverage.txt ./... 26 27 - name: Upload results to Codecov 28 uses: codecov/codecov-action@v4 29 with: 30 token: ${{ secrets.CODECOV_TOKEN }}