Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Node 16 (RobotWebTools#574)
Browse files Browse the repository at this point in the history
* (actions) use node 16

* (actions) include node version in job name

* [TEMP](test) ls -alF

* [TEMP](test) ls -alF ../build

* [TEMP](test) more owner prints

* Change repo owner to github user

* Drop owner prints

* (actions) install apt packages quiet

* [TEMP] set karma logLevel to ALL

* Use chrome for karma tests

* Use puppeteer for chrome

* (actions) drop changing owner

* (actions) install libnss3 needed for chrome

* Revert "(actions) drop changing owner"

This reverts commit 08a9e3f.

* (actions) only own /home/github, not recursively

* (actions) let everything be owned by 1001:121

* (actions) install libasound2 needed for chrome

* (actions) add SYS_ADMIN capability to docker

* (actions) owning home and pwd

* Revert "[TEMP] set karma logLevel to ALL"

This reverts commit f5c66ae.

* (actions) only run node 16

* (actions) also run node 18

* (actions) exclude node 18 on ubuntu 18

* (actions) update build on noetic node 18

* (actions) use node 18 to generate docs

* (actions) container doesn't have git yet installed
  • Loading branch information
MatthijsBurgh authored Nov 1, 2022
1 parent cd7938a commit bdb37ce
Show file tree
Hide file tree
Showing 8 changed files with 1,303 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 16
node-version: 18
- name: Install
run: npm ci
- name: Generate docs
Expand Down
26 changes: 18 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ defaults:

jobs:
ci:
name: ${{ matrix.ros_distro }}
name: ${{ matrix.ros_distro }} (node ${{ matrix.node_version }})
if: ${{ github.actor != 'RWT-bot' }}
runs-on: ubuntu-latest
container: ros:${{ matrix.ros_distro }}-ros-core
container:
image: ros:${{ matrix.ros_distro }}-ros-core
options: --cap-add=SYS_ADMIN
strategy:
fail-fast: false
matrix:
ros_distro: [melodic, noetic]
node_version: [14]
node_version: [16, 18]
exclude:
- ros_distro: melodic
node_version: 18
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
steps:
Expand All @@ -29,18 +34,23 @@ jobs:
with:
cache: npm
node-version: ${{ matrix.node_version }}
- name: Own /github/home
- name: Own /github/home and PWD
run: |
chown -hR $(whoami):$(whoami) /github/home
chown -hR 1001:121 /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
apt-get install -q -y libasound2 libnss3 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' }}
- name: Install git in container
if: ${{ github.event_name == 'push' && endsWith(github.ref, 'develop') && matrix.ros_distro == 'noetic' && matrix.node_version == 18 }}
run: |
apt-get install -q -y git
- name: Commit update of build
uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.event_name == 'push' && endsWith(github.ref, 'develop') && matrix.ros_distro == 'noetic' && matrix.node_version == 18 }}
with:
commit_message: Update Build
file_pattern: 'build/*.js'
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = function(grunt) {
karma: {
options: {
singleRun: true,
browsers: process.env.CI ? ['FirefoxHeadless'] : ['Firefox']
browsers: process.env.CI ? ['ChromeHeadless'] : ['Chrome']
},
test: {
configFile: './test/karma.conf.js',
Expand Down
Loading

0 comments on commit bdb37ce

Please sign in to comment.