Skip to content

Commit

Permalink
chore(ci): add codecov (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil authored Dec 8, 2023
1 parent c3e550d commit 99830db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/job-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ jobs:
vendir: latest
ytt: latest
- name: Test
run: go test -v ./...
run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./coverage.txt
- uses: goreleaser/goreleaser-action@v4
with:
version: latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
.run
/myks
**/.myks/tmp
coverage.txt
1 change: 1 addition & 0 deletions internal/myks/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
type ChangedFiles map[string]string

// GetChangedFilesGit returns list of files changed since the baseRevision, if specified, and since the last commit
// TODO: exclude files that are outside of the myks root directory
func GetChangedFilesGit(baseRevision string) (ChangedFiles, error) {
logFn := func(name string, args []string) {
log.Debug().Msg(msgRunCmd("collect changed files for smart-mode", name, args))
Expand Down

0 comments on commit 99830db

Please sign in to comment.