mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Move to GH Actions in place of Travis
This commit is contained in:
parent
21b602650c
commit
cc708e9fb4
@ -1,4 +1,4 @@
|
|||||||
name: PublishDockerImage
|
name: Publish Release
|
||||||
env:
|
env:
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
on:
|
on:
|
30
.github/workflows/tests.yml
vendored
Normal file
30
.github/workflows/tests.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Run tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master, dev, bye-travis]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master, dev ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [12, 14, 16]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm install
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
npm run test
|
||||||
|
- name: Publish to coveralls.io
|
||||||
|
if: ${{ matrix.node-version == 14 }}
|
||||||
|
uses: coverallsapp/github-action@v1.1.2
|
||||||
|
with:
|
||||||
|
github-token: ${{ github.token }}
|
22
.travis.yml
22
.travis.yml
@ -1,22 +0,0 @@
|
|||||||
sudo: false
|
|
||||||
addons:
|
|
||||||
chrome: stable
|
|
||||||
language: node_js
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- node_js: "16"
|
|
||||||
script:
|
|
||||||
- ./node_modules/.bin/grunt no-coverage
|
|
||||||
- node_js: "14"
|
|
||||||
script:
|
|
||||||
- ./node_modules/.bin/grunt && ( cat coverage/lcov.info | $(npm get prefix)/bin/coveralls || true ) && rm -rf coverage
|
|
||||||
# - scripts/install-ui-test-dependencies.sh && grunt test-ui
|
|
||||||
before_script:
|
|
||||||
- npm install -g coveralls
|
|
||||||
- node_js: "12"
|
|
||||||
script:
|
|
||||||
- ./node_modules/.bin/grunt no-coverage
|
|
||||||
allow_failures:
|
|
||||||
- node_js: "16"
|
|
||||||
script:
|
|
||||||
- ./node_modules/.bin/grunt no-coverage
|
|
Loading…
Reference in New Issue
Block a user