Commit lint by dabrain34 #175
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: "Commit message validation" | |
| run-name: Commit lint by ${{ github.actor }} | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| commit-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install commitlint | |
| run: npm install --save-dev @commitlint/cli | |
| - name: Validate commit messages | |
| run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose |