diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..a89329a --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,25 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.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 and test + run: | + npm i + npm test + env: + CI: true diff --git a/package.json b/package.json index fe9572c..a368270 100644 --- a/package.json +++ b/package.json @@ -19,5 +19,7 @@ "random-access-storage": "^1.4.0", "ssh2": "^0.8.5" }, - "devDependencies": {} + "devDependencies": { + "nyc": "^14.1.1" + } }