chore: Configure Renovate #10
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
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
- v1.0.0 | |
- v1.1.0 | |
pull_request: | |
branches: | |
- main | |
- v1.0.0 | |
- v1.1.0 | |
workflow_dispatch: | |
jobs: | |
diff: | |
runs-on: ubuntu-latest | |
outputs: | |
golang: ${{ steps.filter.outputs.golang }} | |
helmcharts: ${{ steps.filter.outputs.helmcharts }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
base: 'main' | |
filters: | | |
golang: | |
- "apis/**" | |
- "config/**" | |
- "controllers/**" | |
- "generated/**" | |
- "hack/**" | |
- "services/**" | |
- "yatai-client/**" | |
- "version/**" | |
helmcharts: | |
- "helm/**" | |
golint: | |
runs-on: ubuntu-latest | |
needs: | |
- diff | |
if: ${{ (github.event_name == 'pull_request' && needs.diff.outputs.golang == 'true') || github.event_name == 'push' }} | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.18' # The Go version to download (if necessary) and use. | |
- uses: actions/checkout@v3 | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: 'v1.49.0' | |
helmchartslint: | |
runs-on: ubuntu-latest | |
needs: | |
- diff | |
if: ${{ (github.event_name == 'pull_request' && needs.diff.outputs.helmcharts == 'true') || github.event_name == 'push' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: v3.8.1 | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@v2.2.1 | |
- name: Render yatai-deployment Helm Template | |
working-directory: ./helm/yatai-deployment | |
run: make template | |
- name: Render yatai-deployment-crds Helm Template | |
working-directory: ./helm/yatai-deployment-crds | |
run: make template | |
concurrency: | |
group: yatai-deployment-lint-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |