-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup github action for verify (#863)
Signed-off-by: clyang82 <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 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,21 @@ | ||
<!-- | ||
Thanks for creating a pull request! | ||
If this is your first time, please make sure to review CONTRIBUTING.MD. | ||
Please copy the appropriate `:text:` or icon to the beginning of your PR title: | ||
:sparkles: ✨ feature | ||
:bug: 🐛 bug fix | ||
:book: 📖 docs | ||
:memo: 📝 proposal | ||
:warning: ⚠️ breaking change | ||
:seedling: 🌱 other/misc | ||
:question: ❓ requires manual review/categorization | ||
--> | ||
## Summary | ||
|
||
## Related issue(s) | ||
|
||
Fixes # |
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,38 @@ | ||
name: Go | ||
|
||
on: | ||
workflow_dispatch: {} | ||
pull_request: | ||
branches: | ||
- main | ||
- release-* | ||
push: | ||
branches: | ||
- main | ||
- release-* | ||
|
||
defaults: | ||
run: | ||
working-directory: go/src/github.com/stolostron/multicluster-global-hub | ||
|
||
jobs: | ||
format: | ||
name: format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Setup gci | ||
run: go install github.com/daixiang0/gci@latest | ||
|
||
- name: Setup gofumpt | ||
run: go install mvdan.cc/gofumpt@latest | ||
|
||
- name: format | ||
run: make strict-fmt |