-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Wiktor-99/ci_refactor
Ci refactor
- Loading branch information
Showing
8 changed files
with
124 additions
and
36 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
name: Lint | ||
description: Lint using devcontainer | ||
runs: | ||
using: docker | ||
image: ../../../.devcontainer/Dockerfile | ||
entrypoint: .github/actions/lint/run.sh |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
sudo apt-get update | ||
source /opt/ros/$ROS_DISTRO/setup.bash | ||
if [[ "ament_flake8" == "ament_${LINTER}" ]]; then | ||
ament_${LINTER} . --config python_linter.flake8 | ||
else | ||
ament_${LINTER} | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Build and Test (iron) | ||
|
||
on: | ||
push: | ||
branches: [iron] | ||
|
||
pull_request: | ||
branches: [iron] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu:jammy | ||
|
||
steps: | ||
- uses: ros-tooling/setup-ros@v0.7 | ||
with: | ||
use-ros2-testing: true | ||
- uses: ros-tooling/action-ros-ci@v0.3 | ||
with: | ||
target-ros2-distro: iron |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Build and Test (jazzy) | ||
|
||
on: | ||
push: | ||
branches: [jazzy] | ||
|
||
pull_request: | ||
branches: [jazzy] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu:noble | ||
|
||
steps: | ||
- uses: ros-tooling/setup-ros@v0.7 | ||
with: | ||
use-ros2-testing: true | ||
- uses: ros-tooling/action-ros-ci@v0.3 | ||
with: | ||
target-ros2-distro: jazzy |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Build and Test (rolling) | ||
|
||
on: | ||
push: | ||
branches: [rolling] | ||
|
||
pull_request: | ||
branches: [rolling] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu:noble | ||
|
||
steps: | ||
- uses: ros-tooling/setup-ros@v0.7 | ||
with: | ||
use-ros2-testing: true | ||
- uses: ros-tooling/action-ros-ci@v0.3 | ||
with: | ||
target-ros2-distro: rolling |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: ROS | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- foxy* | ||
- humble* | ||
- iron* | ||
- rolling* | ||
- main* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ament_lint_general: | ||
name: ament_${{ matrix.linter }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
linter: [xmllint, flake8, pep257] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Run linter | ||
uses: ./.github/actions/lint/ | ||
env: | ||
LINTER: ${{ matrix.linter }} |
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