@@ -16,24 +16,38 @@ jobs:
1616
1717 outputs :
1818 docker_matrix : ${{ steps.docker-environment.outputs.docker_matrix }}
19+ source_branch : ${{ steps.github-environment.outputs.source_branch }}
20+ target_branch : ${{ steps.github-environment.outputs.target_branch }}
1921
2022 steps :
2123 - name : Checkout Repository
2224 uses : actions/checkout@v4
2325
26+ - name : Setup Watod Environment
27+ run : |
28+ MODULES_DIR="$GITHUB_WORKSPACE/modules"
29+ . ./watod_scripts/watod-setup-env.sh
30+ shell : bash
31+
2432 - name : Generate Docker Environment
2533 id : docker-environment
2634 run : |
27- # Create static matrix for F1TENTH services (single line JSON)
2835 matrix='{"include":[{"service":"robot","dockerfile":"docker/robot/robot.Dockerfile","compose_file":"modules/docker-compose.robot.yaml"},{"service":"sim","dockerfile":"docker/sim/sim.Dockerfile","compose_file":"modules/docker-compose.sim.yaml"},{"service":"vis_tools","dockerfile":"docker/vis_tools/foxglove.Dockerfile","compose_file":"modules/docker-compose.vis_tools.yaml"},{"service":"samples","dockerfile":"docker/samples/py_producer.Dockerfile","compose_file":"modules/docker-compose.samples.yaml"}]}'
2936 echo "docker_matrix=$matrix" >> $GITHUB_OUTPUT
3037
38+ - name : Generate GitHub Environment
39+ id : github-environment
40+ uses : " ./.github/templates/github_context"
41+
3142 build-and-unittest :
3243 name : Build/Test
3344 runs-on : ubuntu-latest
3445 needs : setup-environment
3546
3647 env :
48+ SOURCE_BRANCH : ${{ needs.setup-environment.outputs.source_branch }}
49+ TARGET_BRANCH : ${{ needs.setup-environment.outputs.target_branch }}
50+
3751 SAMPLES_PRODUCER_IMAGE : " samples-producer:latest"
3852 SAMPLES_TRANSFORMER_IMAGE : " samples-transformer:latest"
3953 SAMPLES_AGGREGATOR_IMAGE : " samples-aggregator:latest"
@@ -61,18 +75,27 @@ jobs:
6175
6276 - name : Build Image from Source
6377 run : |
64- # Build using Docker Compose with all env vars available
6578 docker compose -f ${{ matrix.compose_file }} build
6679 env :
6780 DOCKER_BUILDKIT : 1
6881 COMPOSE_DOCKER_CLI_BUILD : 1
6982 BUILDKIT_INLINE_CACHE : 1
7083
84+ - name : Run testing suite
85+ uses : " ./.github/templates/test"
86+ env :
87+ DOCKER_BUILDKIT : 1
88+ COMPOSE_DOCKER_CLI_BUILD : 1
89+ BUILDKIT_INLINE_CACHE : 1
90+ with :
91+ image : ${{ matrix.service }}
92+ tag : " latest"
93+
7194 confirm-build-and-unittest-complete :
72- name : Check Build/Test Completion
95+ name : Confirm Build and Unit Tests Completed
7396 needs : build-and-unittest
7497 runs-on : ubuntu-latest
7598 steps :
7699 - name : Ending
77100 run : |
78- echo "all builds and unit tests completed. "
101+ echo "::notice:: All builds and unit tests completed! "
0 commit comments