Skip to content

test: exclude some go fake files in ut coverage #1793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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=./pkg/blobfuse-proxy/pb
Loading