File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 sudo apt-get install -y make tar diffutils bzip2 gzip curl git
2222 - name : Run make
2323 run : make
24+ - name : Upload coverage artifact
25+ uses : actions/upload-artifact@v5
26+ with :
27+ name : coverage
28+ path : test/coverage/coverage.out
2429
2530 test-fedora :
2631 name : Build and test Fedora on multiple runners
@@ -101,3 +106,24 @@ jobs:
101106 choco install -y make diffutils gzip bzip2 git
102107 - name : Build and test
103108 run : bash -c "make"
109+
110+ upload-coverage :
111+ name : Run tests and upload coverage
112+ runs-on : ubuntu-latest
113+ needs : [ test-makefile ]
114+ if : github.event_name == 'pull_request'
115+ steps :
116+ - name : Checkout
117+ uses : actions/checkout@v6
118+ with :
119+ fetch-depth : 0
120+ - name : Download coverage artifact
121+ uses : actions/download-artifact@v8
122+ with :
123+ name : coverage
124+ - name : Upload results to Codecov
125+ uses : codecov/codecov-action@v5
126+ with :
127+ token : ${{ secrets.CODECOV_TOKEN }}
128+ files : ${{ github.workspace }}/test/coverage/coverage.out
129+
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ integration-test: build
7070
7171unit-test :
7272 mkdir -p $(GOCOVERDIR )
73- go test $(GOFLAGS ) -coverprofile=$(GOCOVERDIR ) /unit .out ./...
74- go tool cover -func=$(GOCOVERDIR ) /unit .out
73+ go test $(GOFLAGS ) -coverprofile=$(GOCOVERDIR ) /coverage .out ./...
74+ go tool cover -func=$(GOCOVERDIR ) /coverage .out
7575
7676test : unit-test integration-test
7777
Original file line number Diff line number Diff line change 1+ [ ![ codecov] ( https://codecov.io/gh/rmiki-dev/tar-diff/graph/badge.svg )] ( https://codecov.io/gh/rmiki-dev/tar-diff )
2+
13# tar-diff
24
35` tar-diff ` is a golang library and set of commandline tools to diff and patch tar files.
@@ -40,4 +42,4 @@ The `tar-diff` file format is described in [file-format.md](file-format.md).
4042## License
4143
4244` tar-diff ` is licensed under the Apache License, Version 2.0. See
43- [ LICENSE] ( LICENSE ) for the full license text.
45+ [ LICENSE] ( LICENSE ) for the full license text.
You can’t perform that action at this time.
0 commit comments