forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubeflow#78 from isinyaaa/codecov-trig
GHA: require codecov token explicitly
- Loading branch information
Showing
2 changed files
with
15 additions
and
17 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,18 +2,18 @@ name: Build | |
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- "main" | ||
pull_request: | ||
paths-ignore: | ||
- 'LICENSE*' | ||
- 'DOCKERFILE*' | ||
- '**.gitignore' | ||
- '**.md' | ||
- '**.txt' | ||
- '.github/ISSUE_TEMPLATE/**' | ||
- '.github/dependabot.yml' | ||
- 'docs/**' | ||
- 'scripts/**' | ||
- "LICENSE*" | ||
- "DOCKERFILE*" | ||
- "**.gitignore" | ||
- "**.md" | ||
- "**.txt" | ||
- ".github/ISSUE_TEMPLATE/**" | ||
- ".github/dependabot.yml" | ||
- "docs/**" | ||
- "scripts/**" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -22,7 +22,7 @@ jobs: | |
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.19' | ||
go-version: "1.19" | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v3 | ||
with: | ||
|
@@ -51,9 +51,8 @@ jobs: | |
- name: Unit tests | ||
run: make test-cover | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
uses: codecov/[email protected] | ||
with: | ||
files: coverage.txt | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true |
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