This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI workflow for GitHub Actions (#3363)
* 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
Showing
2 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters