Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GH actions #881

Merged
merged 4 commits into from May 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,21 @@
name: Node.js CI
on:
push:
branches: master
pull_request:

jobs:
test:
strategy:
matrix:
node: [12.x, 13.x, 14.x, 15.x, 16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
32 changes: 0 additions & 32 deletions lib/ensure/__tests__/symlink.test.js
Expand Up @@ -304,22 +304,6 @@ describe('fse-ensure-symlink', () => {
})
}

describe('fs.symlink()', () => {
const fn = fs.symlink
tests.forEach(test => {
const args = test[0].slice(0)
const nativeBehavior = test[1]
// const newBehavior = test[2]
if (nativeBehavior === 'file-success') fileSuccess(args, fn)
if (nativeBehavior === 'file-broken') fileBroken(args, fn)
if (nativeBehavior === 'file-error') fileError(args, fn)
args.push('dir')
if (nativeBehavior === 'dir-success') dirSuccess(args, fn)
if (nativeBehavior === 'dir-broken') dirBroken(args, fn)
if (nativeBehavior === 'dir-error') dirError(args, fn)
})
})

describe('ensureSymlink()', () => {
const fn = ensureSymlink
tests.forEach(test => {
Expand Down Expand Up @@ -358,22 +342,6 @@ describe('fse-ensure-symlink', () => {
})
})

describe('fs.symlinkSync()', () => {
const fn = fs.symlinkSync
tests.forEach(test => {
const args = test[0].slice(0)
const nativeBehavior = test[1]
// const newBehavior = test[2]
if (nativeBehavior === 'file-success') fileSuccessSync(args, fn)
if (nativeBehavior === 'file-broken') fileBrokenSync(args, fn)
if (nativeBehavior === 'file-error') fileErrorSync(args, fn)
args.push('dir')
if (nativeBehavior === 'dir-success') dirSuccessSync(args, fn)
if (nativeBehavior === 'dir-broken') dirBrokenSync(args, fn)
if (nativeBehavior === 'dir-error') dirErrorSync(args, fn)
})
})

describe('ensureSymlinkSync()', () => {
const fn = ensureSymlinkSync
tests.forEach(test => {
Expand Down