Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Add CI workflow for GitHub Actions (#3363)
Browse files Browse the repository at this point in the history
* Add a nodejs workflow for GitHub Actions
* Fix node path issue in workflow
* Update to CI workflow
* Ignore node engines in yarn
* Remove coveralls forever
  • Loading branch information
abuccts committed Aug 13, 2019
1 parent f04f855 commit 571e71c
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 4 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/continuous-integration.yml
@@ -0,0 +1,55 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
rest-server:
name: Test rest server on node${{ matrix.node_version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [8, 10]
os: [ubuntu-16.04, ubuntu-latest]

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
version: ${{ matrix.node_version }}
- name: yarn install and test
run: |
cd src/rest-server
yarn config set ignore-engines true
yarn install --frozen-lockfiles
yarn test
webportal:
name: Test webportal on node${{ matrix.node_version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [8, 10]
os: [ubuntu-16.04, ubuntu-latest]

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
version: ${{ matrix.node_version }}
- name: yarn install, build and test
run: |
cd src/webportal
yarn config set ignore-engines true
yarn install --frozen-lockfiles
yarn build
yarn test
6 changes: 2 additions & 4 deletions .travis.yml
Expand Up @@ -73,7 +73,7 @@ matrix:
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script:
- mvn clean test jacoco:report coveralls:report
- mvn clean test jacoco:report

- language: java
jdk: openjdk8
Expand All @@ -82,7 +82,7 @@ matrix:
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script:
- mvn clean test jacoco:report coveralls:report
- mvn clean test jacoco:report

- language: node_js
node_js: lts/carbon
Expand All @@ -93,7 +93,6 @@ matrix:
- yarn install
script:
- npm test
- npm run coveralls

- language: node_js
node_js: lts/dubnium
Expand All @@ -104,7 +103,6 @@ matrix:
- yarn install --ignore-engines
script:
- npm test
- npm run coveralls

- language: node_js
node_js: lts/carbon
Expand Down

0 comments on commit 571e71c

Please sign in to comment.