-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use foxy testing apt repos to install linters for Actions (#463)
* Use foxy testing apt repos to install linters for Actions Signed-off-by: Emerson Knapp <[email protected]>
- Loading branch information
1 parent
1e25d22
commit b229399
Showing
1 changed file
with
9 additions
and
9 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,8 +1,4 @@ | ||
# Run linters automatically on pull requests. | ||
# | ||
# ros-tooling/actino-ros-lint is relying on the latest APT binary packages. | ||
# As of 2020-05-01, Eloquent is the latest release for which APT binary | ||
# packages are available, which is why the Docker image is based on Eloquent. | ||
name: Lint rosbag2 | ||
on: | ||
pull_request: | ||
|
@@ -12,14 +8,15 @@ jobs: | |
name: ament_copyright | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rostooling/setup-ros-docker:ubuntu-bionic-ros-eloquent-ros-base-latest | ||
image: rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-ros-base-testing-latest | ||
steps: | ||
# TODO(setup-ros-docker#7): calling chown is necessary for now | ||
- run: sudo chown -R rosbuild:rosbuild "$HOME" . | ||
- uses: actions/checkout@v2 | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
linter: copyright | ||
distribution: foxy | ||
package-name: | | ||
ros2bag | ||
rosbag2_compression | ||
|
@@ -34,14 +31,15 @@ jobs: | |
name: ament_xmllint | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rostooling/setup-ros-docker:ubuntu-bionic-ros-eloquent-ros-base-latest | ||
image: rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-ros-base-testing-latest | ||
steps: | ||
# TODO(setup-ros-docker#7): calling chown is necessary for now | ||
- run: sudo chown -R rosbuild:rosbuild "$HOME" . | ||
- uses: actions/checkout@v2 | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
linter: xmllint | ||
distribution: foxy | ||
package-name: | | ||
ros2bag | ||
rosbag2 | ||
|
@@ -57,19 +55,20 @@ jobs: | |
ament_lint_cpp: # Linters applicable to C++ packages | ||
name: ament_${{ matrix.linter }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rostooling/setup-ros-docker:ubuntu-bionic-ros-eloquent-ros-base-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
linter: [cppcheck, cpplint, uncrustify] | ||
container: | ||
image: rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-ros-base-testing-latest | ||
steps: | ||
# TODO(setup-ros-docker#7): calling chown is necessary for now | ||
- run: sudo chown -R rosbuild:rosbuild "$HOME" . | ||
- uses: actions/checkout@v2 | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
linter: ${{ matrix.linter }} | ||
distribution: foxy | ||
package-name: | | ||
rosbag2_compression | ||
rosbag2_converter_default_plugins | ||
|
@@ -83,7 +82,7 @@ jobs: | |
name: ament_${{ matrix.linter }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rostooling/setup-ros-docker:ubuntu-bionic-ros-eloquent-ros-base-latest | ||
image: rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-ros-base-testing-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -95,5 +94,6 @@ jobs: | |
- uses: ros-tooling/[email protected] | ||
with: | ||
linter: ${{ matrix.linter }} | ||
distribution: foxy | ||
package-name: | | ||
ros2bag |