diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..d9e8aa8 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,25 @@ +name: build + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm install + npm test + env: + CI: true diff --git a/.gitignore b/.gitignore index 8e44777..aada0ce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # babel dist /lib +*.lcov # Numerous always-ignore extensions *.bak diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 73c8d22..0000000 --- a/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -/src -.travis.yml -.appveyor.yml -.babelrc -.editorconfig diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a8955e4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -sudo: false -node_js: - - "6" - - "8" - - "10" diff --git a/README.md b/README.md index 92147bc..658d569 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/kaelzhang/node-glob-gitignore.svg?branch=master)](https://travis-ci.org/kaelzhang/node-glob-gitignore) +[![Build Status](https://github.com/kaelzhang/node-glob-gitignore/actions/workflows/nodejs.yml/badge.svg)](https://github.com/kaelzhang/node-glob-gitignore/actions/workflows/nodejs.yml) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 85b6d85..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Test against this version of Node.js -environment: - matrix: - - nodejs_version: "6" - - nodejs_version: "8" - - nodejs_version: "10" - -# Install scripts. (runs after repo cloning) -install: - # Get the latest stable version of Node.js or io.js - - ps: Install-Product node $env:nodejs_version - # install modules - - npm install - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - node --version - - npm --version - - npm test - -# Don't actually build. -build: off diff --git a/package.json b/package.json index 06ee65c..8072b00 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,14 @@ "description": "Extends `glob` with support for filtering files according to gitignore rules and exposes an optional Promise API with NO performance issues", "main": "src/index.js", "scripts": { - "test": "nyc ava --timeout=10s", - "test-no-report": "NODE_DEBUG=ignore-nested nyc ava --timeout=10s --verbose", + "test": "nyc ava --timeout=10s --no-worker-threads", + "test-no-report": "NODE_DEBUG=ignore-nested nyc ava --timeout=10s --verbose --no-worker-threads", "lint": "eslint .", "posttest": "nyc report --reporter=text-lcov > coverage.lcov && codecov" }, "files": [ - "src/" + "src/", + "LICENSE" ], "repository": { "type": "git", @@ -35,20 +36,23 @@ "url": "https://github.com/kaelzhang/node-glob-gitignore/issues" }, "ava": { - "babel": false + "files": [ + "test/*.js" + ] }, "devDependencies": { - "ava": "^1.2.1", - "codecov": "^3.2.0", - "eslint": "^5.14.1", - "eslint-config-ostai": "^1.4.0", - "eslint-plugin-import": "^2.16.0", - "nyc": "^13.3.0" + "ava": "^4.0.1", + "codecov": "^3.0.2", + "nyc": "^12.0.2", + "eslint-config-ostai": "^1.1.0", + "eslint-plugin-import": "^2.13.0", + "eslint": "^5.1.0" }, "dependencies": { - "glob": "^7.1.3", - "ignore": "^5.0.5", - "lodash": "4.x", + "glob": "^7.1.2", + "ignore": "^5.0.0", + "lodash.difference": "^4.5.0", + "lodash.union": "^4.6.0", "make-array": "^1.0.5", "util.inherits": "^1.0.3" }