Skip to content

Commit

Permalink
Attempt 1 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
greencoda authored Apr 23, 2024
1 parent 0e53553 commit e9e59a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ jobs:

- name: Run Test
run: make test

- name: Copy coverage.out file to temp
run: cp coverage.out $RUNNER_TEMP

- name: Update coverage report
uses: ncruces/go-coverage-report@v0
with:
coverage-file: ${{ runner.temp }}/coverage.out
report: true
chart: true
amend: true
Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@ mocks:
mockery

test:
go test ${TESTABLE_PACKAGES} -count=1 -cover
go test ${TESTABLE_PACKAGES} -count=1 -cover -coverprofile=coverage.out

test-cover:
go test ${TESTABLE_PACKAGES} -count=1 -cover -coverprofile=coverage.out
go tool cover -html=coverage.out

test-loaders:
(for dir in ./loaders/*/; do \
(cd $$dir;go test ./... -count=1 -cover -coverprofile=coverage.out) \
done)

0 comments on commit e9e59a4

Please sign in to comment.