Skip to content

Commit 21b01f4

Browse files
authored
Implement GH actions (#881)
* Implement GH actions * Only build pushes to master * Don't test Node's own behavior * Test on Node 16
1 parent 588d770 commit 21b01f4

File tree

2 files changed

+21
-32
lines changed

2 files changed

+21
-32
lines changed

.github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches: master
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
strategy:
10+
matrix:
11+
node: [12.x, 13.x, 14.x, 15.x, 16.x]
12+
os: [ubuntu-latest, macos-latest, windows-latest]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node }}
20+
- run: npm install
21+
- run: npm test

lib/ensure/__tests__/symlink.test.js

-32
Original file line numberDiff line numberDiff line change
@@ -304,22 +304,6 @@ describe('fse-ensure-symlink', () => {
304304
})
305305
}
306306

307-
describe('fs.symlink()', () => {
308-
const fn = fs.symlink
309-
tests.forEach(test => {
310-
const args = test[0].slice(0)
311-
const nativeBehavior = test[1]
312-
// const newBehavior = test[2]
313-
if (nativeBehavior === 'file-success') fileSuccess(args, fn)
314-
if (nativeBehavior === 'file-broken') fileBroken(args, fn)
315-
if (nativeBehavior === 'file-error') fileError(args, fn)
316-
args.push('dir')
317-
if (nativeBehavior === 'dir-success') dirSuccess(args, fn)
318-
if (nativeBehavior === 'dir-broken') dirBroken(args, fn)
319-
if (nativeBehavior === 'dir-error') dirError(args, fn)
320-
})
321-
})
322-
323307
describe('ensureSymlink()', () => {
324308
const fn = ensureSymlink
325309
tests.forEach(test => {
@@ -358,22 +342,6 @@ describe('fse-ensure-symlink', () => {
358342
})
359343
})
360344

361-
describe('fs.symlinkSync()', () => {
362-
const fn = fs.symlinkSync
363-
tests.forEach(test => {
364-
const args = test[0].slice(0)
365-
const nativeBehavior = test[1]
366-
// const newBehavior = test[2]
367-
if (nativeBehavior === 'file-success') fileSuccessSync(args, fn)
368-
if (nativeBehavior === 'file-broken') fileBrokenSync(args, fn)
369-
if (nativeBehavior === 'file-error') fileErrorSync(args, fn)
370-
args.push('dir')
371-
if (nativeBehavior === 'dir-success') dirSuccessSync(args, fn)
372-
if (nativeBehavior === 'dir-broken') dirBrokenSync(args, fn)
373-
if (nativeBehavior === 'dir-error') dirErrorSync(args, fn)
374-
})
375-
})
376-
377345
describe('ensureSymlinkSync()', () => {
378346
const fn = ensureSymlinkSync
379347
tests.forEach(test => {

0 commit comments

Comments
 (0)