Skip to content

Commit

Permalink
try linting in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuebel committed Aug 29, 2024
1 parent ae7ec95 commit c23ecf5
Showing 1 changed file with 35 additions and 27 deletions.
62 changes: 35 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,48 +24,56 @@ jobs:
package-name: lbrmed_bringup lbrmed_control lbrmed_description lbrmed_hw_fri lbrmed_moveit_config lbrmed_msgs
target-ros1-distro: noetic
vcs-repo-file-url: .rosinstall
# Reuse the setup job's workspace state by caching it.
- uses: actions/cache@v4
with:
path: |
.catkin_tools
build
devel
key: ${{ runner.os }}-build-${{ github.sha }}

# build:
# needs: setup
lint:
needs: CI
runs-on: ubuntu-latest
container:
image: moveit/moveit:noetic-release
steps:
# Reuse the previous job's workspace state by caching it.
- name: Cache catkin workspace directories
uses: actions/cache@v2
with:
path: |
.catkin_tools
build
devel
key: ${{ runner.os }}-build-${{ github.sha }}
- name: catkin lint
run: |
source devel/setup.bash
catkin_lint -W2 --pkg lbrmed_bringup —pkg lbrmed_control —pkg lbrmed_description —pkg lbrmed_hw_fri —pkg lbrmed_moveit_config —pkg lbrmed_msgs
# linting_and_tests:
# needs: build
# runs-on: ubuntu-latest
# container: moveit/moveit:noetic-release

# steps:
# - name: Checkout code
# uses: actions/checkout@v2

# # Reuse the setup job's workspace state by caching it.
# - name: Cache catkin workspace directories
# uses: actions/cache@v2
# with:
# path: |
# .catkin_tools
# build
# devel
# key: ${{ runner.os }}-build-${{ github.sha }}

# # Run the actual build commands.
# - name: Build with catkin tools
# run: catkin build --summarize --no-status --force-color

# linting_and_tests:
# needs: build
# build:
# needs: setup
# runs-on: ubuntu-latest
# container: moveit/moveit:noetic-release

# steps:
# - name: Checkout code
# uses: actions/checkout@v2

# # Reuse the previous job's workspace state by caching it.
# - name: Cache catkin workspace directories
# uses: actions/cache@v2
# with:
# path: |
# .catkin_tools
# build
# devel
# key: ${{ runner.os }}-build-${{ github.sha }}
# # Run the actual build commands.
# - name: Build with catkin tools
# run: catkin build --summarize --no-status --force-color

# # Source the setup.bash script before running tests.
# - name: Source setup.bash and run catkin_lint
Expand Down

0 comments on commit c23ecf5

Please sign in to comment.