Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 9 additions & 23 deletions .github/workflows/validate-commits.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,25 @@
name: Validate Commits and Predict Version
name: Validate Commits

on:
push:
branches:
- '*'
- '!main'
- '!master'
pull_request:
branches:
- '*'
- main

jobs:
validate-commits-and-lint-charts:
branch-name:
uses: nullplatform/actions-nullplatform-terraform/.github/workflows/branch-validation.yml@main

commitlint:
uses: nullplatform/actions-nullplatform-terraform/.github/workflows/conventional-commit.yml@main

lint-charts:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Validate branch name
run: ./scripts/validate-branch-name.sh "${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"

- name: Validate commit messages
run: npx commitlint --from ${{ github.event.pull_request.base.sha || 'HEAD~10' }} --to ${{ github.sha }} --verbose

- name: Set up Helm
uses: azure/setup-helm@v4

Expand Down