Skip to content

Commit 6e57bfc

Browse files
committed
(fix) always run linting
1 parent d463cdc commit 6e57bfc

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
---
22
# based on https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
3-
name: Hydra Build and Test
3+
name: Hydra-ROS Build and Test
44
on: {push: {branches: [main]}, pull_request: {branches: [main]}}
55
jobs:
6-
lint:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v4
10-
- name: Dependencies
11-
run: sudo apt-get update && sudo apt install pipx
12-
- name: Lint
13-
run: pipx install pre-commit && cd ${{github.workspace}} && pre-commit run --all-files
146
ros2:
157
runs-on: ubuntu-latest
168
container: ros:jazzy-perception

.github/workflows/linting.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
# based on https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
3+
name: Hydra-ROS Linting
4+
on: {push: {branches: [main, develop]}, pull_request: {}}
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Dependencies
11+
run: sudo apt-get update && sudo apt install pipx
12+
- name: Lint
13+
run: pipx install pre-commit && cd ${{github.workspace}} && pre-commit run --all-files

0 commit comments

Comments
 (0)