Skip to content

Commit

Permalink
ci(github): set up codecov (#33)
Browse files Browse the repository at this point in the history
upload test coverage results to Codecov and tidy CI config a bit

ref: storacha/project-tracking#173
  • Loading branch information
volmedo authored Nov 12, 2024
2 parents d682c42 + 3123ab6 commit 4752886
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4752886

Please sign in to comment.