EPMDEDP-16521: chore: remove PR title length validation #26
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: "pull_request" | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| security-events: write | |
| env: | |
| GOLANG_VERSION: '1.25' | |
| jobs: | |
| check-commit-message: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check Commit Format | |
| uses: gsactions/commit-message-checker@v2 | |
| with: | |
| pattern: '^(EPMDEDP-\d+: (fix|feat|docs|style|refactor|test|chore)(!)?: .+|(chore|build)\(deps\): Bump .+)$' | |
| error: 'Your commit message should be in the format "EPMDEDP-ID: type: Description". Example: "EPMDEDP-16058: feat: add feature"' | |
| excludeDescription: 'true' | |
| excludeTitle: 'true' | |
| checkAllCommitMessages: 'true' | |
| accessToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check Line Length | |
| uses: gsactions/commit-message-checker@v2 | |
| with: | |
| pattern: '^.{10,72}$' | |
| error: 'The maximum line length of 72 characters is exceeded.' | |
| excludeDescription: 'true' | |
| excludeTitle: 'true' | |
| checkAllCommitMessages: 'true' | |
| accessToken: ${{ secrets.GITHUB_TOKEN }} | |
| helm-docs: | |
| needs: [check-commit-message] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GOLANG_VERSION }} | |
| - name: Make Build | |
| run: make validate-docs | |
| helm-lint: | |
| needs: [helm-docs] | |
| runs-on: ubuntu-latest | |
| env: | |
| CHART_DIR: "deploy-templates" | |
| CT_CONFIGS_DIR: "." | |
| CT_CONFIGS_DIR_DEFAULT: "ct-configs" | |
| CT_FILE_PATH: "ct.yaml" | |
| LINTCONF_FILE_PATH: "lintconf.yaml" | |
| CHART_SCHEMA_FILE_PATH: "chart_schema.yaml" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| check-latest: true | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@v2.8.0 | |
| - name: Run chart-testing (lint) | |
| run: ct lint --target-branch ${{ github.event.repository.default_branch }} \ | |
| --charts ${CHART_DIR}/ \ | |
| --config ${CT_FILE_PATH} \ | |
| --lint-conf ${LINTCONF_FILE_PATH} \ | |
| --chart-yaml-schema ${CHART_SCHEMA_FILE_PATH} | |
| build-lint-test: | |
| needs: [helm-lint] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GOLANG_VERSION }} | |
| - name: Make Build | |
| run: make build | |
| - name: Make Lint | |
| run: make lint | |
| - name: Run tests | |
| run: make test | |
| docker-lint: | |
| needs: [build-lint-test] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Run hadolint | |
| uses: hadolint/hadolint-action@v3.3.0 | |
| with: | |
| dockerfile: Dockerfile |