Skip to content

Test action-ros-lint #20055

Test action-ros-lint

Test action-ros-lint #20055

Workflow file for this run

name: "Test action-ros-lint"
on:
pull_request:
push:
branches:
- master
- 'releases/*'
schedule:
# Run the CI automatically every hour to look for flakyness.
- cron: '0 * * * *'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
test_setup_ros:
runs-on: ubuntu-latest
container:
image: ubuntu:focal
steps:
- uses: actions/checkout@v2
with:
path: '.'
- uses: actions/setup-node@v3.5.1
with:
node-version: '12.x'
- run: .github/workflows/build-and-test.sh
- uses: ros-tooling/setup-ros@v0.2
- uses: actions/checkout@v2
with:
repository: ament/ament_lint
ref: 0.8.1
path: 'ament_lint'
- name: Try default linter
uses: ./
with:
package-name: ament_copyright ament_lint
workspace-directory: ament_lint
- name: Try a linter with additional arguments
uses: ./
with:
linter: lint_cmake
arguments: '--filter=-linelength,+syntax'
package-name: ament_cmake_cpplint
workspace-directory: ament_lint
- name: Try a linter with underscores in the name
uses: ./
with:
linter: lint_cmake
arguments: '--filter=-linelength'
package-name: ament_cmake_cpplint
workspace-directory: ament_lint
test_setup_ros_docker:
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-focal-latest
options: -u root # setup-node requires root access
steps:
- uses: actions/checkout@v2
with:
path: '.'
- uses: actions/setup-node@v3.5.1
with:
node-version: '12.x'
- run: .github/workflows/build-and-test.sh
- uses: actions/checkout@v2
with:
repository: ament/ament_lint
ref: 0.8.1
path: 'ament_lint'
- name: Try default linter
uses: ./
with:
package-name: ament_copyright ament_lint
workspace-directory: ament_lint
- name: Try a linter with additional arguments
uses: ./
with:
linter: lint_cmake
arguments: '--filter=-linelength,+syntax'
package-name: ament_cmake_cpplint
workspace-directory: ament_lint
- name: Try a linter with underscores in the name
uses: ./
with:
linter: lint_cmake
arguments: '--filter=-linelength'
package-name: ament_cmake_cpplint
workspace-directory: ament_lint