Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9a2e87c
generate coverage report in ci
Irakus Apr 4, 2025
378153e
fixed linter
Irakus Apr 4, 2025
a358cdf
comment out coverage
Irakus Apr 4, 2025
c618dff
Merge branch 'main' into code_coverage
dmytroye Apr 4, 2025
8ec1773
revert changes in readme
Irakus Apr 9, 2025
f0b58cd
Merge branch 'main' into code_coverage
Irakus Apr 9, 2025
5a22002
archiving coverage
Irakus Apr 9, 2025
ea9d5b4
revert changes in api mapping
Irakus Apr 9, 2025
6dc7a17
always save coverage
Irakus Apr 9, 2025
7481758
remove gitmodules file
Irakus Apr 9, 2025
445c708
check without coverage
Irakus Apr 9, 2025
31408b4
added parameter for tests
Irakus Apr 9, 2025
ab383ff
enable coverage reports
Irakus Apr 9, 2025
1082d40
compute coverage to skipped modules
Irakus Apr 9, 2025
c4589e3
added more params for tests
Irakus Apr 9, 2025
f94ed7e
adjusted timeout to new functions
Irakus Apr 9, 2025
10b2707
Added github actions output
Irakus Apr 9, 2025
6504029
use new mage target for better output
Irakus Apr 9, 2025
1ccb718
fixed description for target
Irakus Apr 9, 2025
1f0161c
remove additional params
Irakus Apr 10, 2025
c4e144a
disable coverage
Irakus Apr 10, 2025
74bfe36
Merge branch 'code_coverage' of https://github.com/open-edge-platform…
Irakus Apr 10, 2025
e258325
Merge branch 'main' into code_coverage
Irakus Apr 10, 2025
55985df
re-enable coverage
Irakus Apr 10, 2025
aea4f44
Merge branch 'code_coverage' of https://github.com/open-edge-platform…
Irakus Apr 10, 2025
c405064
Merge branch 'main' into code_coverage
Irakus Apr 10, 2025
7f6c85b
Merge branch 'main' into code_coverage
johnoloughlin May 23, 2025
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
16 changes: 15 additions & 1 deletion .github/workflows/lint-test-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ jobs:
contents: read
name: Test Go
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 25
needs:
- lint-go
- check-license
Expand Down Expand Up @@ -412,6 +412,20 @@ jobs:
- name: Run tests
run: mage test:golang

- name: Copy all coverage reports to single directory
if: always()
run: |
mkdir -p coverage
find . -regex ".*coverprofile.*" -exec sh -c 'cp $1 coverage/$(echo $1 | sed "s/\//-/g" | cut -c 3-)' sh {} ';'

- name: Upload coverage reports
if: always()
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: Code coverage reports
path: coverage
retention-days: 1

build-containers:
permissions:
contents: read
Expand Down
5 changes: 5 additions & 0 deletions mage/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func (Test) golang() error {
"--race",
"-randomize-all",
"-randomize-suites",
// "--fail-on-pending",
// "--fail-on-empty",
// "--keep-going",
"--cover",
// "-coverpkg="+strings.Join(skippedPackages, ","),
"--skip-package="+strings.Join(skippedPackages, ","),
)
}
Loading