Skip to content

Commit

Permalink
🌹 Switch CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed May 3, 2021
1 parent 0a2cfb4 commit 6445f63
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 39 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Node CI

on:
pull_request:
branches:
- master

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
node: [8.6.0, 10.0.0, 12.0.0]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

13 changes: 7 additions & 6 deletions test/xattr.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
const xattr = require('../')

const fs = require('fs')
const os = require('os')
const temp = require('fs-temp')
const assert = require('assert')
const crypto = require('crypto')
Expand Down Expand Up @@ -47,8 +48,8 @@ describe('xattr#sync', function () {
assert.throws(function () {
xattr.getSync(path, attribute0)
}, function (err) {
assert.strictEqual(err.errno, 93)
assert.strictEqual(err.code, 'ENOATTR')
assert.strictEqual(err.errno, os.platform() === 'darwin' ? 93 : 61)
assert.strictEqual(err.code, os.platform() === 'darwin' ? 'ENOATTR' : 'ENODATA')
return true
})
})
Expand Down Expand Up @@ -98,8 +99,8 @@ describe('xattr#async', function () {
}

assert(err)
assert.strictEqual(err.errno, 93)
assert.strictEqual(err.code, 'ENOATTR')
assert.strictEqual(err.errno, os.platform() === 'darwin' ? 93 : 61)
assert.strictEqual(err.code, os.platform() === 'darwin' ? 'ENOATTR' : 'ENODATA')
})

after(function (done) {
Expand Down Expand Up @@ -144,8 +145,8 @@ describe('xattr#utf8', function () {
}

assert(err)
assert.strictEqual(err.errno, 93)
assert.strictEqual(err.code, 'ENOATTR')
assert.strictEqual(err.errno, os.platform() === 'darwin' ? 93 : 61)
assert.strictEqual(err.code, os.platform() === 'darwin' ? 'ENOATTR' : 'ENODATA')
})

after(function (done) {
Expand Down

0 comments on commit 6445f63

Please sign in to comment.