diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4308aa2..89796e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,24 +5,26 @@ name: Test on: push: - branches: [ "main" ] + branches: ['main'] pull_request: - branches: [ "main" ] + branches: ['main'] jobs: - - build: + test: + name: Run tests and collect coverage runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.21' + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23' - - name: Build - run: go build -v ./... + - name: Test + run: go test -v -coverprofile=coverage.txt ./... - - name: Test - run: go test -v -cover ./... + - name: Upload results to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/go.mod b/go.mod index bfc454a..e5d3ec1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/storacha/go-ucanto -go 1.23 +go 1.23.3 require ( github.com/ipfs/go-cid v0.4.1