Skip to content

Commit

Permalink
feat(.github/workflows): add new ci steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Wabri committed Aug 8, 2024
1 parent 7bd7149 commit c810896
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
firstParent: true
golangci:
name: lint
needs: commit_lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,3 +27,24 @@ jobs:
version: latest
only-new-issues: false
args: --timeout 2m --config .golangci.yaml
go_test:
runs-on: ubuntu-latest
needs: golangci
steps:
- uses: actions/checkout@v4

- name: Run unit test
run: go test
checkhealth:
runs-on: ubuntu-latest
needs: go_test
steps:
- uses: actions/checkout@v4

- name: Run checkhealth
run: make checkhealth

- uses: actions/upload-artifact@v4
with:
name: daje

2 changes: 1 addition & 1 deletion pkg/cmd/checkhealth/checkhealth.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ func submitCmdCheckhealth() error {
log.Println(value + ": " + viper.GetString(value))
}

return nil
return errors.New("test")
}

0 comments on commit c810896

Please sign in to comment.