Skip to content

ci: setup pre-releases workflow #54

ci: setup pre-releases workflow

ci: setup pre-releases workflow #54

Workflow file for this run

name: Test
on:
push:
branches:
- main
- beta
- "[0-9]+.[0-9]+.x"
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: Run tests on Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:cov
- name: Collect coverage
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
coverage:
name: Publish coverage
needs: test
runs-on: ubuntu-latest
steps:
- name: Publish coverage
uses: coverallsapp/github-action@v2
with:
parallel-finished: true