Skip to content

Merge pull request #665 from share/dependabot/github_actions/actions/… #574

Merge pull request #665 from share/dependabot/github_actions/actions/…

Merge pull request #665 from share/dependabot/github_actions/actions/… #574

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 18
- 20
- 22
services:
mongodb:
image: mongo:4.4
ports:
- 27017:27017
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install
- name: Lint
run: npm run lint
- name: Test
run: npm run test-cover
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ matrix.node }}
parallel: true
- name: Test sharedb-mongo
run: scripts/test-sharedb-mongo.sh
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Submit coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true