Skip to content

Commit 47c54d9

Browse files
DanielRuftypicode
authored andcommittedNov 15, 2019
Fix CI setup (#1046)
* Add missing NodeJS versions * Add GitHub Actions setup * Use latest graceful-fs version * Pin graceful-fs to fix readstream bug
1 parent 72e5f95 commit 47c54d9

File tree

4 files changed

+38
-12403
lines changed

4 files changed

+38
-12403
lines changed
 

‎.github/workflows/main.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
platform: [ubuntu-latest]
10+
node: [ '10', '12' ]
11+
name: Node ${{ matrix.node }} (${{ matrix.platform }})
12+
runs-on: ${{ matrix.platform }}
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node }}
18+
- name: install dependencies
19+
run: npm i
20+
- name: run tests
21+
run: npm test
22+
test_latest:
23+
runs-on: ubuntu-latest
24+
container: node:latest
25+
name: Node latest (ubuntu-latest)
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: install dependencies
29+
run: npm i
30+
- name: run tests
31+
run: npm test

‎.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
language: node_js
22
node_js:
33
- "node"
4-
- "8"
4+
- "12"
5+
- "10"
6+
install: npm i

‎package-lock.json

-12,402
This file was deleted.

‎package.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"test": "test"
99
},
1010
"scripts": {
11+
"preinstall": "npx npm-force-resolutions",
1112
"test": "npm run build && cross-env NODE_ENV=test jest && npm run lint",
1213
"start": "run-p start:**",
1314
"start:babel-node": "babel-node src/cli/bin db.json -r routes.json",
@@ -81,6 +82,9 @@
8182
"webpack-cli": "^3.3.7",
8283
"whatwg-fetch": "^3.0.0"
8384
},
85+
"resolutions": {
86+
"graceful-fs": "4.2.3"
87+
},
8488
"repository": {
8589
"type": "git",
8690
"url": "git://github.com/typicode/json-server.git"

0 commit comments

Comments
 (0)
Please sign in to comment.