Merge pull request #2269 from SwedbankPay/feature/devp-390_deposit_on… #16268
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/shellcheck-action@v2.1 | |
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 |