Skip to content

Commit 75d7491

Browse files
authored
Run "npm i", add scheduled tests run (#475)
* Run tests on windows, mac * Run eslint only for one specific version * Remove AppVeyor CI, fix conditions for eslint and coverage * Run only one test on macos
1 parent df715e9 commit 75d7491

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ version: 2
22
updates:
33
- package-ecosystem: "npm"
44
directory: "/"
5+
assignees:
6+
- "s0ph1e"
7+
open-pull-requests-limit: 10
58
schedule:
69
interval: "weekly"

.github/workflows/node.js.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,39 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
schedule:
9+
- cron: '13 2 * * *'
810

911
jobs:
1012
test:
11-
12-
runs-on: ubuntu-latest
13-
13+
runs-on: ${{ matrix.os }}
1414
strategy:
15+
fail-fast: false
1516
matrix:
16-
node-version: [12.x, 14.x, 16.x, 17.x]
17-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
17+
node-version:
18+
- 12
19+
- 14
20+
- 16
21+
- 17
22+
os:
23+
- ubuntu-latest
24+
- windows-latest
25+
include:
26+
- node-version: 16
27+
os: macos-latest
1828

1929
steps:
2030
- uses: actions/checkout@v2
2131
- name: Use Node.js ${{ matrix.node-version }}
2232
uses: actions/setup-node@v2
2333
with:
2434
node-version: ${{ matrix.node-version }}
25-
- run: npm ci
35+
- run: npm i
2636
- run: npm test
37+
- run: npm run eslint
38+
if: ${{ matrix.node-version == '16' && matrix.os == 'ubuntu-latest' }}
2739
- name: Coveralls
28-
if: ${{ matrix.node-version == '16.x' }}
40+
if: ${{ matrix.node-version == '16' && matrix.os == 'ubuntu-latest' }}
2941
uses: coverallsapp/github-action@master
3042
with:
3143
github-token: ${{ secrets.GITHUB_TOKEN }}

appveyor.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"./plugins": "./lib/plugins/index.js"
1111
},
1212
"scripts": {
13-
"test": "c8 --all --reporter=text --reporter=lcov mocha --recursive --timeout 7000 ./test/unit/ ./test/functional && npm run eslint",
13+
"test": "c8 --all --reporter=text --reporter=lcov mocha --recursive --timeout 7000 ./test/unit/ ./test/functional",
1414
"test-e2e": "mocha --timeout 300000 ./test/e2e/*-test.js",
1515
"eslint": "eslint lib/** index.mjs"
1616
},

0 commit comments

Comments
 (0)