Skip to content

Commit

Permalink
Lint nits. Run CI on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-5IPRP36\joe-m committed Jul 28, 2021
1 parent e710618 commit 2a56ac0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ on:
jobs:
build:

runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
platform: [ubuntu-20.04, windows-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion packages/cbor-cli/test/exec.ava.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function exec(bin, opts = {}) {
const args = opts.args || []
if (process.platform === 'win32') {
args.unshift(bin)
bin = process.argv[0]
;[bin] = process.argv
}
const c = spawn(bin, args, {
stdio: 'pipe',
Expand Down
2 changes: 1 addition & 1 deletion packages/cbor/test/test-vectors.ava.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test('vectors', t => {
}

if (v.hasOwnProperty('decoded')) {
t.deepEqual(decoded, v.decoded, v.hex)
t.deepEqual(decoded, v.decoded, `Hex: "${v.hex}"`)

if (v.roundtrip) {
// TODO: Don't know how to make these round-trip. See:
Expand Down

0 comments on commit 2a56ac0

Please sign in to comment.