Skip to content

Commit bd35aba

Browse files
authored
Merge pull request #1793 from andyzhangx/goveralls-exclude3
test: exclude some go fake files in ut coverage
2 parents cd25601 + 9ef518f commit bd35aba

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/linux.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ jobs:
1818
- name: Check out code into the Go module directory
1919
uses: actions/checkout@v4
2020

21-
- name: Run unit test
22-
run: |
23-
export PATH=$PATH:$HOME/.local/bin
24-
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
25-
sudo dpkg -i packages-microsoft-prod.deb
26-
sudo apt-get update
27-
sudo apt-get install blobfuse
28-
go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/...
29-
3021
- name: Run build test
3122
run: |
3223
export PATH=$PATH:$HOME/.local/bin
@@ -42,10 +33,19 @@ jobs:
4233
export PATH=$PATH:$HOME/.local/bin
4334
make blobfuse-proxy
4435
36+
- name: Run unit test
37+
run: |
38+
export PATH=$PATH:$HOME/.local/bin
39+
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
40+
sudo dpkg -i packages-microsoft-prod.deb
41+
sudo apt-get update
42+
sudo apt-get install blobfuse
43+
go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/...
44+
4545
- name: Install goveralls
4646
run: go install github.com/mattn/goveralls@latest
4747

4848
- name: Send coverage
4949
env:
5050
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
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
51+
run: goveralls -coverprofile=profile.cov -service=github -ignore=./pkg/blobfuse-proxy/pb

0 commit comments

Comments
 (0)