Skip to content

Commit

Permalink
test: exclude some go fake files in ut coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Jan 15, 2025
1 parent a90decb commit 320a5db
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run unit test
run: |
export PATH=$PATH:$HOME/.local/bin
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install blobfuse
go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/...
- name: Run build test
run: |
export PATH=$PATH:$HOME/.local/bin
Expand All @@ -42,10 +33,19 @@ jobs:
export PATH=$PATH:$HOME/.local/bin
make blobfuse-proxy
- name: Run unit test
run: |
export PATH=$PATH:$HOME/.local/bin
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install blobfuse
go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/...
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest

- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=profile.cov -service=github -ignore=./pkg/blobfuse-proxy/pb/azure_blob_mount.pb.go,./pkg/blobfuse-proxy/pb/azure_blob_mount_grpc.pb.go
run: goveralls -coverprofile=profile.cov -service=github -ignore=pb

0 comments on commit 320a5db

Please sign in to comment.