Skip to content

Commit 6711516

Browse files
authored
GitHub Actions (#4)
* GitHub Actions Signed-off-by: Matteo Collina <hello@matteocollina.com> * fixup Signed-off-by: Matteo Collina <hello@matteocollina.com> --------- Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent 0729602 commit 6711516

File tree

4 files changed

+59
-10
lines changed

4 files changed

+59
-10
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/workflows/ci.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: ci
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: ['0.10', '0.12', 4.x, 6.x, 8.x, 10.x, 12.x, 13.x, 14.x, 15.x, 16.x]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
persist-credentials: false
17+
18+
- name: Use Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: Install
24+
run: |
25+
npm install
26+
27+
- name: Run tests
28+
run: |
29+
npm run test
30+
31+
lint:
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
persist-credentials: false
38+
39+
- name: Use Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 22
43+
44+
- name: Install
45+
run: |
46+
npm install
47+
48+
- name: Lint
49+
run: |
50+
npm run lint

.travis.yml

-9
This file was deleted.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Bulk through",
55
"main": "throughv.js",
66
"scripts": {
7-
"test": "standard && tape test.js | faucet"
7+
"test": "tape test.js | faucet",
8+
"lint": "standard"
89
},
910
"precommit": "test",
1011
"repository": {

0 commit comments

Comments
 (0)