Skip to content

Commit

Permalink
test: github actions and upgrade ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Sep 24, 2024
1 parent c8a236a commit 898cb12
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 48 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# babel dist
/lib
*.lcov

# Numerous always-ignore extensions
*.bak
Expand Down
5 changes: 0 additions & 5 deletions .npmignore

This file was deleted.

6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
<!-- optional appveyor tst
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/kaelzhang/node-glob-gitignore?branch=master&svg=true)](https://ci.appveyor.com/project/kaelzhang/node-glob-gitignore)
-->
Expand Down
23 changes: 0 additions & 23 deletions appveyor.yml

This file was deleted.

30 changes: 17 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
Expand Down

0 comments on commit 898cb12

Please sign in to comment.