Skip to content

Run CI for github-actions #14

Run CI for github-actions

Run CI for github-actions #14

Workflow file for this run

name: pull-request
run-name: Run CI for ${{ github.head_ref }}
on:
pull_request:
branches:
- master
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 8, 10, 12, 14, 16, 18, 20 ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test:ci
- name: Coveralls
uses: coverallsapp/github-action@master
env:
COVERALLS_FLAG_NAME: run-${{ matrix.node }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
coveralls-finalize:
needs: run
runs-on: ubuntu-latest
steps:
- name: Coveralls finalize
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true