-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support List and All method on Caches struct
PiperOrigin-RevId: 727042892
- Loading branch information
1 parent
01b042e
commit 0f98a76
Showing
7 changed files
with
491 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Go Test Automation with Coverage | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Run Go Tests and Coverage | ||
runs-on: ubuntu-latest # Use GitHub-hosted Ubuntu runner | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23 # Adjust to your required Go version | ||
|
||
- name: Install dependencies | ||
run: go mod tidy | ||
|
||
- name: Run tests with coverage | ||
run: go test -coverprofile=coverage.out -covermode=atomic ./... | ||
|
||
- name: Generate coverage report | ||
run: go tool cover -func=coverage.out | ||
|
||
- name: Upload coverage report as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage-report | ||
path: coverage.out |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.