Re-usable workflow actions, split integration testing #21
Workflow file for this run
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
name: Nightly | |
on: push | |
jobs: | |
build-minimal-docker-images: | |
name: Push minimal docker images to GitHub Packages | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ros_distribution: [jazzy] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to docker | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push minimal-nav2-bringup | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
build-args: | | |
ROS_DISTRO=${{ matrix.ros_distribution }} | |
tags: ghcr.io/${{ github.repository }}/minimal-nav2-bringup:${{ matrix.ros_distribution }}-latest | |
context: .github/docker/minimal-nav2-bringup | |
- name: Build and push minimal-zenoh-bridge | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
build-args: | | |
ROS_DISTRO=${{ matrix.ros_distribution }} | |
ZENOH_VERSION=1.0.1 | |
FREE_FLEET_BRANCH=efc/integration-testing | |
tags: ghcr.io/${{ github.repository }}/minimal-zenoh-bridge:${{ matrix.ros_distribution }}-latest | |
context: .github/docker/minimal-zenoh-bridge | |
integration-tests: | |
needs: build-minimal-docker-images | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
container: | |
image: osrf/ros:${{ matrix.ros_distribution }}-desktop-noble | |
strategy: | |
matrix: | |
ros_distribution: | |
- jazzy | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Start test fixture containers | |
run: docker-compose -f ".github/docker/integration-tests/docker-compose.yaml" up -d --build | |
- name: build-and-test | |
uses: ./.github/actions/build-and-test | |
with: | |
ros-distribution: ${{ matrix.ros_distribution }} | |
zenoh-version: 1.0.1 | |
integration-testing: ON | |
- name: Stop test fixture containers | |
if: always() | |
run: docker-compose -f ".github/docker/integration-tests/docker-compose.yaml" down |