Skip to content

file organization

file organization #54

Workflow file for this run

# runs on any merge, verifies ros2 package can be built, tests run
name: Integration Pipeline
run-name: Integration pipeline triggered by ${{ github.actor }}
on:
workflow_call:
inputs:
delivery:
required: false
type: boolean
default: true
deployment:
required: false
type: boolean
default: true
# pull_request:
workflow_dispatch:
inputs:
delivery:
description: 'Would you like to update the official image?'
required: false
default: true
type: boolean
deployment:
description: 'Would you like to run unit and benchmarking tests?'
required: false
default: true
type: boolean
jobs:
inputs:
- name: Print inputs

Check failure on line 33 in .github/workflows/integration.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/integration.yml

Invalid workflow file

You have an error in your yaml syntax on line 33
run: |
echo ${{ github.event.inputs.delivery }}
echo ${{ inputs.delivery }}
echo ${{ github.event.inputs.deployment }}
echo ${{ inputs.deployment }}
build:
- name: Compile
run: |
source /opt/ros/humble/setup.bash
cd /ros2_ws
rosdep install --from-paths src -y --ignore-src
colcon build --event-handlers console_cohesion+ --symlink-install
test:
- name: Run tests
needs: build
run: |
source /opt/ros/humble/setup.bash
cd /ros2_ws
source install/setup.bash
colcon test --event-handlers console_cohesion+
colcon test-result --verbose
# should pipe into markdown and display report...
# These are only triggered through workflow dispatch
delivery:
if: ${{ github.event.inputs.delivery }}
steps:
- run: echo "this was detected successfully as a boolean (delivery)"
# uses: ./.github/workflows/delivery.yml
# with:
# branch: {{ github.head_ref }}
# deployment: {{ github.events.inputs.deployment }}
deployment:
if: ${{ inputs.deployment }}
steps:
- run: echo "this was detected successfully as boolean (deployment)"
# needs: delivery
# uses: ./.github/workflows/deployment.yml
# with:
# container_branch: {{ github.head_ref }}
# container_version: {{ needs.delivery.outputs.version }}