Skip to content

dev: update devDependencies to latest #13

dev: update devDependencies to latest

dev: update devDependencies to latest #13

Workflow file for this run

name: CI
on:
push:
branches: ['**']
pull_request:
branches: ['main']
jobs:
pre-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
- run: npm install
- run: npm run format:check
- run: npm run lint:check
branch-test:
if: github.ref_name != 'main' && success()
needs: pre-test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest']
node: ['12.0']
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
- run: npm install
- run: npm test
test:
if: github.ref_name == 'main' && success()
needs: pre-test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest']
node: ['12.0', '14.0', '16.0']
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm install
- run: npm test
- if: matrix.os == 'ubuntu-latest' && matrix.node == '16.0'
run: npm run coverage
- if: matrix.os == 'ubuntu-latest' && matrix.node == '16.0'
uses: coverallsapp/[email protected]
with:
github-token: ${{ github.token }}
path-to-lcov: ./coverage.info