Skip to content

Commit

Permalink
GH Actions (#54)
Browse files Browse the repository at this point in the history
* Remove bower.json

* update karma config

* Add npm build script

* (actions) add GH actions

* (travis) remove travis

* build; add package-lock.json

* (README) update CI badge
  • Loading branch information
MatthijsBurgh authored May 8, 2021
1 parent 63739bd commit 6f55c7c
Show file tree
Hide file tree
Showing 8 changed files with 10,192 additions and 43 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
pull_request:
branches-ignore:
- develop

jobs:
ci:
name: ${{ matrix.node_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node_version: [14, 16]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
- name: Install grunt-cli
run: npm install -g grunt-cli
- name: Install
run: npm install
- name: Build
run: npm run build

- name: Build Check
run: |
echo -e "\e[1m\e[35mChecking build folder is up-to-date with library\e[0m"
changed_build_files=$(git -C "$(git rev-parse --show-toplevel)" diff --name-only HEAD -- build)
if [ -n "$changed_build_files" ]
then
echo -e "\e[1m\e[31mBuild folder is out-of-sync with library. Build library, npm run build, and (ammend) commit\e[0m"
exit 1
else
echo -e "\e[1m\e[32mBuild folder is up-to-date with library\e[0m"
fi
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = function(grunt) {
build: {
configFile: './test/karma.conf.js',
singleRun: true,
browsers: ['PhantomJS']
browsers: process.env.CI ? ['FirefoxHeadless'] : ['Firefox'] // jshint ignore:line
}
},
uglify: {
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ros2djs [![Build Status](https://api.travis-ci.org/RobotWebTools/ros2djs.png)](https://travis-ci.org/RobotWebTools/ros2djs)
=======
# ros2djs

[![CI](https://github.com/RobotWebTools/ros2djs/actions/workflows/main.yml/badge.svg)](https://github.com/RobotWebTools/ros2djs/actions/workflows/main.yml)

#### 2D Visualization Library for use with the ROS JavaScript Libraries
For full documentation, see [the ROS wiki](http://ros.org/wiki/ros2djs) or check out some [working demos](http://robotwebtools.org/).
Expand Down
28 changes: 0 additions & 28 deletions bower.json

This file was deleted.

2 changes: 1 addition & 1 deletion build/ros2d.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6f55c7c

Please sign in to comment.