forked from snktshrma/ardupilot_ros
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* And run the workflow on PR and push to humble Signed-off-by: Ryan Friedman <[email protected]>
- Loading branch information
1 parent
bdeae1b
commit 067e7f1
Showing
1 changed file
with
10 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
--- | ||
name: pre-commit | ||
|
||
on: [push] | ||
on: | ||
pull_request: | ||
push: | ||
branches: [humble] | ||
|
||
|
||
concurrency: | ||
group: ci-${{github.workflow}}-${{ github.ref }} | ||
|
@@ -12,23 +16,12 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false # don't cancel if a job from the matrix fails | ||
# steps: | ||
# # git checkout the PR | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# submodules: 'recursive' | ||
# - name: Install pre-commit tool | ||
# run: | | ||
# apk update | ||
# apk add python3 py3-pip --no-cache | ||
# python3 -m pip install pre-commit | ||
# - name: Install pre-commit in repo | ||
# run: | | ||
# pre-commit install | ||
# - name: Run pre-commit | ||
# run: | | ||
# pre-commit run --all-files --verbose --show-diff-on-failure | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v3 | ||
- name: Install pre-commit dependencies | ||
shell: 'bash' | ||
run: | | ||
sudo apt update | ||
sudo apt install --no-install-recommends libxml2-utils | ||
- uses: pre-commit/[email protected] |