ci(pre-commit): autoupdate #257
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: test-pre-commit-hooks | |
on: | |
pull_request: | |
jobs: | |
test-pre-commit-hooks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Run pre-commit | |
uses: autowarefoundation/autoware-github-actions/pre-commit@v1 | |
with: | |
pre-commit-config: tests/pre-commit-hooks/test-pre-commit-hooks.yaml | |
- name: Try pre-commit | |
run: | | |
pre-commit try-repo https://github.com/tier4/pre-commit-hooks-ros flake8-ros -a --ref ${{ github.ref }} | |
- name: Try pre-commit with fault injected | |
run: | | |
echo "import os" >> pre_commit_hooks/sort_package_xml.py | |
if pre-commit try-repo https://github.com/tier4/pre-commit-hooks-ros flake8-ros -a --ref ${{ github.ref }}; then | |
exit 1 | |
fi |