зеркало из https://github.com/microsoft/pai.git
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
This commit is contained in:
Родитель
f04f855bc9
Коммит
571e71c84f
|
@ -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
|
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -93,7 +93,6 @@ matrix:
|
|||
- yarn install
|
||||
script:
|
||||
- npm test
|
||||
- npm run coveralls
|
||||
|
||||
- language: node_js
|
||||
node_js: lts/dubnium
|
||||
|
@ -104,7 +103,6 @@ matrix:
|
|||
- yarn install --ignore-engines
|
||||
script:
|
||||
- npm test
|
||||
- npm run coveralls
|
||||
|
||||
- language: node_js
|
||||
node_js: lts/carbon
|
||||
|
|
Загрузка…
Ссылка в новой задаче