generated from athackst/vscode_ros2_workspace
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into user/dfriend01/add-mypy
- Loading branch information
Showing
17 changed files
with
219 additions
and
79 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
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
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
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
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
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
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,6 +1,25 @@ | ||
name: 'Ament Lint' | ||
description: 'Ament Lint using devcontainer' | ||
|
||
inputs: | ||
linter: | ||
description: 'The linter to run' | ||
required: true | ||
disable_vcs: | ||
description: 'Whether to disable VCS cloning all repositories' | ||
required: true | ||
|
||
runs: | ||
using: 'docker' | ||
image: '../../../.devcontainer/Dockerfile' | ||
entrypoint: ".github/actions/ament-lint/run.sh" | ||
using: "composite" | ||
steps: | ||
- name: Build Containers | ||
shell: bash | ||
run: docker-compose -f .devcontainer/docker-compose.yml build | ||
|
||
- name: Run Containers | ||
shell: bash | ||
run: docker-compose -f .devcontainer/docker-compose.yml up -d | ||
|
||
- name: Run Tests | ||
shell: bash | ||
run: docker-compose -f .devcontainer/docker-compose.yml exec -T sailbot-workspace /bin/bash -c "export LINTER=${{ inputs.linter}} && export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && .github/actions/ament-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
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,24 @@ | ||
name: 'Checkout Repositories' | ||
description: 'Checkout the repositories depending on the inputs' | ||
|
||
inputs: | ||
repository: | ||
description: 'The repository name: github.event.repository.name' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout ROS package | ||
if: ${{ inputs.repository != 'sailbot_workspace' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: UBCSailbot/${{ inputs.repository }} | ||
path: src/${{ inputs.repository }} | ||
|
||
- name: Checkout custom_interfaces ROS package | ||
if: ${{ inputs.repository != 'sailbot_workspace' && inputs.repository != 'custom_interfaces' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: UBCSailbot/custom_interfaces | ||
path: src/custom_interfaces |
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,6 +1,22 @@ | ||
name: 'Clang-Tidy' | ||
description: 'Clang-Tidy using devcontainer' | ||
|
||
inputs: | ||
disable_vcs: | ||
description: 'Whether to disable VCS cloning all repositories' | ||
required: true | ||
|
||
runs: | ||
using: 'docker' | ||
image: '../../../.devcontainer/Dockerfile' | ||
entrypoint: ".github/actions/clang-tidy/run.sh" | ||
using: "composite" | ||
steps: | ||
- name: Build Containers | ||
shell: bash | ||
run: docker-compose -f .devcontainer/docker-compose.yml build | ||
|
||
- name: Run Containers | ||
shell: bash | ||
run: docker-compose -f .devcontainer/docker-compose.yml up -d | ||
|
||
- name: Run Tests | ||
shell: bash | ||
run: docker-compose -f .devcontainer/docker-compose.yml exec -T sailbot-workspace /bin/bash -c "export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && .github/actions/clang-tidy/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 |
---|---|---|
@@ -1,6 +1,22 @@ | ||
name: 'Test' | ||
description: 'Test using devcontainer' | ||
|
||
inputs: | ||
disable_vcs: | ||
description: 'Whether to disable VCS cloning all repositories' | ||
required: true | ||
|
||
runs: | ||
using: 'docker' | ||
image: '../../../.devcontainer/Dockerfile' | ||
entrypoint: ".github/actions/test/run.sh" | ||
using: "composite" | ||
steps: | ||
- name: Build Containers | ||
shell: bash | ||
run: docker-compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.db.yml build | ||
|
||
- name: Run Containers | ||
shell: bash | ||
run: docker-compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.db.yml up -d | ||
|
||
- name: Run Tests | ||
shell: bash | ||
run: docker-compose -f .devcontainer/docker-compose.yml -f .devcontainer/docker-compose.db.yml exec -T sailbot-workspace /bin/bash -c "export DISABLE_VCS=${{ inputs.disable_vcs }} && cd /workspaces/sailbot_workspace && .github/actions/test/run.sh" |
Oops, something went wrong.