Skip to content

Commit

Permalink
Setup github action for verify (#863)
Browse files Browse the repository at this point in the history
Signed-off-by: clyang82 <[email protected]>
  • Loading branch information
clyang82 authored Apr 1, 2024
1 parent d590dbf commit 9a263af
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/pull_request_template.md
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 #
38 changes: 38 additions & 0 deletions .github/workflows/go.yml
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

0 comments on commit 9a263af

Please sign in to comment.