Skip to content

chore(doc): fix example code (#1127) #107

chore(doc): fix example code (#1127)

chore(doc): fix example code (#1127) #107

name: Pre-Release Tests
# On pushes to master (i.e. merging a PR)
# run all tests, on win, macos, linux, on node 12 & 14
on:
push:
branches:
- main
# Don't run if it's just markdown or doc files
paths-ignore:
- "**.md"
- "docs/**"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [14, 16, 18]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Upgrade npm
run: npm i -g npm@7
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test in Node
run: npm run test:node
- name: Test in Chrome
run: npm run test:chrome:ci
- uses: codecov/codecov-action@v1
with:
directory: ./coverage