-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit e2b3221.
- Loading branch information
Showing
3 changed files
with
1 addition
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ name: CI Build and Test | |
|
||
on: | ||
workflow_call: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
|
||
|
@@ -29,28 +27,3 @@ jobs: | |
run: go build -tags release -v ./... | ||
- name: Test | ||
run: make test | ||
- name: Store coverage report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage-report | ||
path: coverage.out | ||
|
||
code-coverage: | ||
name: "test coverage change report" | ||
continue-on-error: true | ||
if: github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main | ||
runs-on: ubuntu-latest | ||
needs: build-and-test # Depends on the artifact uploaded by the "build-and-test" job | ||
permissions: | ||
contents: read | ||
actions: read # to download code coverage results from "test" job | ||
pull-requests: write # write permission needed to comment on PR | ||
steps: | ||
# this will fail if the target branch does not already have a coverage.out file uploaded as an artifact | ||
- uses: fgrosse/[email protected] | ||
with: | ||
coverage-artifact-name: "coverage-report" | ||
coverage-file-name: "coverage.out" | ||
# below options used to make coverage work across forks | ||
trim: github.com/project-kessel/inventory-api | ||
root-package: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters