Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(actions) use container #553

Merged
merged 43 commits into from
Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
ee94623
(actions) use container
MatthijsBurgh Jun 3, 2022
5e75f1a
Update main.yml
MatthijsBurgh Jun 3, 2022
73dd366
Update main.yml
MatthijsBurgh Jun 3, 2022
a4a603e
Update main.yml
MatthijsBurgh Jun 3, 2022
dd80647
Update main.yml
MatthijsBurgh Jun 3, 2022
c713f8f
Update main.yml
MatthijsBurgh Jun 3, 2022
9bd2235
Update main.yml
MatthijsBurgh Jun 3, 2022
1ee38f6
(actions) don't run as root
MatthijsBurgh Jun 4, 2022
9c12633
(actions) fix syntax
MatthijsBurgh Jun 4, 2022
ae7e196
(actions) apt needs sudo with other user
MatthijsBurgh Jun 4, 2022
9b41717
Update main.yml
MatthijsBurgh Jun 4, 2022
1ef6414
Update main.yml
MatthijsBurgh Jun 4, 2022
92a7f0c
Update main.yml
MatthijsBurgh Jun 4, 2022
2f6d950
Update main.yml
MatthijsBurgh Jun 4, 2022
f097256
Update main.yml
MatthijsBurgh Jun 5, 2022
4f81dbf
Update main.yml
MatthijsBurgh Jun 6, 2022
00ad92e
Update main.yml
MatthijsBurgh Jun 6, 2022
bf41bda
Update setup_examples.bash
MatthijsBurgh Jun 6, 2022
e14c408
Update setup_examples.bash
MatthijsBurgh Jun 6, 2022
7b11fde
Update setup_examples.bash
MatthijsBurgh Jun 6, 2022
d34dd91
Update setup_examples.bash
MatthijsBurgh Jun 6, 2022
450e74f
Update setup_examples.bash
MatthijsBurgh Jun 6, 2022
558ab01
Update setup_examples.bash
MatthijsBurgh Jun 6, 2022
10f13b3
Update main.yml
MatthijsBurgh Jun 6, 2022
82b15f3
Update main.yml
MatthijsBurgh Jun 6, 2022
4fe2f7a
Update setup_examples.bash
MatthijsBurgh Jun 6, 2022
33f7b66
Update setup_examples.bash
MatthijsBurgh Jun 6, 2022
96459af
Update main.yml
MatthijsBurgh Jun 6, 2022
d8f32e3
Update setup_examples.bash
MatthijsBurgh Jun 6, 2022
2588430
[temp] (actions)get node version
MatthijsBurgh Aug 14, 2022
6524fb3
(actions) don't use when calling NPM
MatthijsBurgh Aug 14, 2022
8fcee51
(actions) remove get node version sudo
MatthijsBurgh Aug 14, 2022
a43fbb5
(actions) remove get node version sudo -H
MatthijsBurgh Aug 14, 2022
f040af8
Update main.yml
MatthijsBurgh Aug 14, 2022
385d376
(actions) ll /github
MatthijsBurgh Aug 14, 2022
eef73e1
(actions) ll -> ls -alF
MatthijsBurgh Aug 14, 2022
1be7403
(actions) own /github
MatthijsBurgh Aug 14, 2022
3bbc2a3
Update main.yml
MatthijsBurgh Aug 14, 2022
c547b96
(actions) cleanup
MatthijsBurgh Aug 14, 2022
4fabe2c
(setup_examples) cleanup
MatthijsBurgh Aug 14, 2022
1eb652d
(actions) remove ls
MatthijsBurgh Aug 15, 2022
0f152af
(test) remove prints
MatthijsBurgh Aug 15, 2022
2aec102
Delete Dockerfile
MatthijsBurgh Aug 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,42 @@ 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 }}
- name: Docker pull
run: docker pull ros:${{ matrix.ros_distro }}-ros-core
- name: Docker build
run: docker build --build-arg ROS_DISTRO="${{ matrix.ros_distro }}" --build-arg NODE_VERSION="${{ matrix.node_version }}" -t roslibjsdocker .
- 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: docker run -v $(pwd):/root/roslibjs --rm roslibjsdocker bash -i -c 'bash /root/roslibjs/test/build.bash'
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:
Expand Down
18 changes: 0 additions & 18 deletions Dockerfile

This file was deleted.