parent
03b99c936d
commit
5ec8435e9b
@ -0,0 +1,23 @@
|
|||||||
|
name: Node.js Tests
|
||||||
|
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [10.x, 12.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm test ci
|
||||||
|
env:
|
||||||
|
CI: true
|
@ -1,29 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
dist: trusty
|
|
||||||
addons:
|
|
||||||
chrome: stable
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
on_success: never
|
|
||||||
on_failure: change
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- node_js:
|
|
||||||
- "10"
|
|
||||||
before_install:
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
- git fetch origin master:refs/remotes/origin/master --depth=1
|
|
||||||
install:
|
|
||||||
- npm ci # clean install
|
|
||||||
script:
|
|
||||||
- npm run ci # run tests
|
|
||||||
- node_js:
|
|
||||||
- "12"
|
|
||||||
before_install:
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
- git fetch origin master:refs/remotes/origin/master --depth=1
|
|
||||||
install:
|
|
||||||
- npm ci # clean install
|
|
||||||
script:
|
|
||||||
- npm run ci # run tests
|
|
Loading…
Reference in new issue