Skip to content

build(deps-dev): bump @babel/core from 7.21.0 to 7.21.3 (#784) #855

build(deps-dev): bump @babel/core from 7.21.0 to 7.21.3 (#784)

build(deps-dev): bump @babel/core from 7.21.0 to 7.21.3 (#784) #855

Workflow file for this run

name: Tests
on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
env:
FORCE_COLOR: 2
NODE_COV: 16 # The Node.js version to run coverage on
jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [14, 16, 18]
os: [ubuntu-latest, windows-latest]
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run Jest tests
run: npm run jest -- --runInBand
if: "!(startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV)"
- name: Run Jest tests with coverage
run: npm run jest -- --runInBand --coverage
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV
- name: Run Coveralls
uses: coverallsapp/github-action@v1.2.4
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
path-to-lcov: "./.coverage/lcov.info"