mirror of
https://github.com/node-red/node-red
synced 2024-11-21 23:48:30 +00:00
31 lines
691 B
YAML
31 lines
691 B
YAML
name: Run tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, dev ]
|
|
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 }}
|