mirror of
https://github.com/node-red/node-red
synced 2024-11-21 23:48:30 +00:00
60593fed4a
Bumps the github-actions group with 2 updates: [actions/setup-node](https://github.com/actions/setup-node) and [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request). Updates `actions/setup-node` from 3 to 4 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) Updates `peter-evans/create-pull-request` from 2 to 5 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v2...v5) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
883 B
YAML
37 lines
883 B
YAML
name: Run tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, dev ]
|
|
pull_request:
|
|
branches: [ master, dev ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
checks: write # for coverallsapp/github-action to create new checks
|
|
contents: read # for actions/checkout to fetch code
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [16, 18, 20]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
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 == 16 }}
|
|
# uses: coverallsapp/github-action@v1.1.2
|
|
# with:
|
|
# github-token: ${{ github.token }}
|