-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
49 lines (44 loc) · 1.27 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "ROS2 Test Action"
description: "Runs Greenroom's standard ROS2 test setup"
author: "Greenroom Robotics"
branding:
icon: "package"
color: "gray-dark"
inputs:
token:
description: "The Github token with access to the packages repo and release api"
required: true
ros_distro:
description: "The ROS2 distro to use"
required: false
runs:
using: "composite"
steps:
- name: Checkout this repository
uses: actions/checkout@v3
with:
lfs: true
# - name: Collect Workflow Telemetry
# uses: Greenroom-Robotics/workflow-telemetry-action@main
- name: Build Docker Container
shell: bash
env:
API_TOKEN_GITHUB: ${{ inputs.token }}
GPU: "false"
ROS_DISTRO: ${{ inputs.ros_distro }}
run: docker compose build
- name: Run Tests
shell: bash
env:
API_TOKEN_GITHUB: ${{ inputs.token }}
GPU: "false"
ROS_DISTRO: ${{ inputs.ros_distro }}
run: |
mkdir results && chmod a+w results
docker compose run tests
- name: Publish Test Report
uses: Greenroom-Robotics/action-junit-report@main
if: always() # always run even if the previous step fails
with:
check_name: 'Test Report'
report_paths: 'results/*/*.xml'