Skip to content

Commit

Permalink
ci, and test coverage exception
Browse files Browse the repository at this point in the history
just accept this will not have full coverage any time soon.
  • Loading branch information
isaacs committed Feb 27, 2022
1 parent 256f17f commit 5da00d2
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 2,875 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on: [push, pull_request]

jobs:
build:
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 17.x]
platform:
- os: ubuntu-latest
shell: bash
- os: macos-latest
shell: bash
- os: windows-latest
shell: bash
- os: windows-latest
shell: powershell
fail-fast: false

runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}

steps:
- name: Checkout Repository
uses: actions/checkout@v1.1.0

- name: Use Nodejs ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run Tests
run: npm test -- -c -t0
3 changes: 2 additions & 1 deletion lib/sax.js
Original file line number Diff line number Diff line change
Expand Up @@ -1496,8 +1496,9 @@

continue

default:
default: /* istanbul ignore next */ {
throw new Error(parser, 'Unknown state: ' + parser.state)
}
}
} // while

Expand Down
Loading

0 comments on commit 5da00d2

Please sign in to comment.