Bump word-wrap from 1.2.3 to 1.2.4 in /robomaker-sample-app-ci #284
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: "Test aws-robomaker-github-actions-ros-2" | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
- 'releases/*' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
test_robomaker-sample-app-ci-ros2: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
distro: ['foxy'] | |
gazebo: [11] | |
include: | |
- distro: foxy | |
gazebo: 11 | |
ubuntu_distro: focal | |
container: | |
image: ubuntu:${{ matrix.ubuntu_distro }} | |
# NOTES: We run 2 tests for robot_ws and simulation_ws | |
# The test steps are duplicated because github workflow does not support reusable step (with parameter yet) | |
# We also can use matrix to run tests with different parameters but it is overkill for this | |
steps: | |
# Checkout SA ros2 branch into default root folder | |
- name: Checkout hello world sample app | |
uses: actions/checkout@v2 | |
with: | |
repository: aws-robotics/aws-robomaker-sample-application-helloworld | |
ref: ros2 | |
# Checkout action code into action folder | |
- name: Checkout action code | |
uses: actions/checkout@v2 | |
with: | |
path: action | |
- name: Setup nodeJS | |
uses: actions/[email protected] | |
with: | |
node-version: '12.x' | |
- name: Install nodeJS packages | |
run: npm install | |
working-directory: ./action/robomaker-sample-app-ci | |
- name: Build test script | |
run: npm run build | |
working-directory: ./action/robomaker-sample-app-ci | |
# Trigger to run robomaker-sample-app-ci action script | |
- name: Build and bundle robot_ws | |
uses: ./action/robomaker-sample-app-ci | |
with: | |
ros-distro: ${{ matrix.distro }} | |
workspace-dir: ./robot_ws | |
generate-sources: true | |
# Expectation: bundle file, build files, and dependencies all exist | |
- name: Check robot_ws file existence | |
id: check_robot_ws_files | |
uses: andstor/file-existence-action@87d74d4732ddb824259d80c8a508c0124bf1c673 | |
with: | |
files: "./robot_ws.tar, ./robot_ws/build, ./robot_ws/install, ./robot_ws/src/deps" | |
allow_failure: true | |
# Trigger to run robomaker-sample-app-ci action script | |
- name: Build and bundle simulation_ws | |
uses: ./action/robomaker-sample-app-ci | |
with: | |
ros-distro: ${{ matrix.distro }} | |
workspace-dir: ./simulation_ws | |
generate-sources: false | |
# Expectation: bundle file, build files, and dependencies all exist | |
- name: Check simulation_ws file existence | |
id: check_simulation_ws_files | |
uses: andstor/file-existence-action@87d74d4732ddb824259d80c8a508c0124bf1c673 | |
with: | |
files: "./simulation_ws.tar, ./simulation_ws/build, ./simulation_ws/install, ./simulation_ws/src/deps" | |
allow_failure: true | |
# Expectation: source files exist | |
- name: Check source file existence | |
id: check_source_files | |
uses: andstor/file-existence-action@87d74d4732ddb824259d80c8a508c0124bf1c673 | |
with: | |
files: "./sources.zip, ./sources.tar.gz" | |
- name: Check all files exists | |
if: steps.check_robot_ws_files.outputs.files_exists == 'true' && steps.check_simulation_ws_files.outputs.files_exists == 'true' && steps.check_source_files.outputs.files_exists == 'true' | |
# Only runs if all of the files exists | |
run: echo All files exists! |