Skip to content

Fix: conditional exports types #25

Fix: conditional exports types

Fix: conditional exports types #25

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 --no-package-lock
- 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 --no-package-lock
- 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/github-action@1.1.3
with:
github-token: ${{ github.token }}
path-to-lcov: ./coverage.info