Skip to content

Commit

Permalink
add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
dh1tw committed Jan 28, 2024
1 parent 4c6b5e8 commit feab01c
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,35 @@ jobs:
-
name: Install dependencies
run: |
sudo apt install libsamplerate0 libsamplerate0-dev
sudo apt-get install -y libsamplerate0 libsamplerate0-dev
-
name: Compile
run: go build
-
name: Execute Unit Tests
run: go test ./...
run: go test ./...

update_code_coverage:
runs-on: ubuntu-22.04
steps:
-
name: Set up Go 1.21
uses: actions/setup-go@v4
id: go
with:
go-version: 1.21
-
name: Checkout source code
uses: actions/checkout@v4
with:
submodules: true
-
name: Install dependencies
run: |
sudo apt-get install -y libsamplerate0 libsamplerate0-dev
-
name: Execute Unit Tests
run: go test -race -coverprofile=coverage.out -covermode=atomic
-
name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

0 comments on commit feab01c

Please sign in to comment.