test: make audit log table configurable #1219
Workflow file for this run
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: Lint Commit Messages | |
on: [pull_request] | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: wagoid/commitlint-github-action@v6 | |
strict-commitlint: | |
name: Strict commit lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: wagoid/commitlint-github-action@v6 | |
with: | |
failOnWarnings: true | |
- name: Check amount of commits | |
# Run this check even if previous one failed | |
if: always() | |
env: | |
COMMITS_COUNT: ${{ github.event.pull_request.commits }} | |
run: |- | |
if [ $COMMITS_COUNT -gt 2 ]; then | |
echo "You have ${COMMITS_COUNT} commits in your PR. Didn't you mean to squash them?" | |
exit 1 | |
fi | |
echo "Your PR seems correct. Good job." |