Merge pull request #2032 from SwedbankPay/feature/dx-2276_use_case_se… #14579
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: Githooks | |
on: [push, pull_request] | |
jobs: | |
shellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Shellcheck | |
uses: bewuethr/[email protected] | |
commit-msg: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Valid commit messages | |
shell: bash | |
run: bash ./.github/scripts/commit-msg-test.sh | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Valid branch names | |
shell: bash | |
run: | | |
git checkout -b feature/dx-123_hello | |
bash ./.githooks/pre-commit | |
- name: Invalid branch names | |
shell: bash | |
run: | | |
git checkout -b feature/hello | |
bash ./.githooks/pre-commit |