feat: 重构模板解析支持 include 引用模板解析 #905
Workflow file for this run
This file contains hidden or 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
| name: GolangCILint | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened] | |
| paths: | |
| - 'pkg/**' | |
| - 'cmd/**' | |
| - 'version/**' | |
| - 'go.mod' | |
| - 'go.sum' | |
| - 'api/**' | |
| # Remove all permissions from GITHUB_TOKEN except metadata. | |
| permissions: {} | |
| jobs: | |
| golangci: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'kubesphere/kubekey' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.24.0 | |
| - name: Sync mod | |
| run: make generate-modules | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.7.2 | |
| verify: | |
| name: verify | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'kubesphere/kubekey' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.23.3 | |
| - name: Sync mod | |
| run: make generate-modules | |
| - name: Verify | |
| run: ALL_VERIFY_CHECKS="goimports releaser" make verify | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'kubesphere/kubekey' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.23.3 | |
| - name: Sync mod | |
| run: make generate-modules | |
| - name: Test | |
| run: make test |