forked from RobotWebTools/roslibjs
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.5 KB
/
main.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
name: CI
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
ci:
name: ${{ matrix.ros_distro }}
if: ${{ github.actor != 'RWT-bot' }}
runs-on: ubuntu-latest
container: ros:${{ matrix.ros_distro }}-ros-core
strategy:
fail-fast: false
matrix:
ros_distro: [melodic, noetic]
node_version: [14]
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
steps:
- uses: actions/checkout@v3
env:
TOKEN: "${{ github.event_name == 'push' && endsWith(github.ref, 'develop') && matrix.ros_distro == 'noetic' && secrets.RWT_BOT_PAT || github.token }}"
with:
token: ${{ env.TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Own /github/home
run: |
chown -hR $(whoami):$(whoami) /github/home
- name: Install apt dependencies
run: |
apt-get update
apt-get install -y firefox ros-$ROS_DISTRO-rosbridge-server ros-$ROS_DISTRO-tf2-web-republisher ros-$ROS_DISTRO-common-tutorials ros-$ROS_DISTRO-rospy-tutorials ros-$ROS_DISTRO-actionlib-tutorials
- name: Tests
run: |
bash -c "source /opt/ros/$ROS_DISTRO/setup.bash && bash test/build.bash"
- uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.event_name == 'push' && endsWith(github.ref, 'develop') && matrix.ros_distro == 'noetic' }}
with:
commit_message: Update Build
file_pattern: 'build/*.js'