diff --git a/.github/workflows/test-node.yml b/.github/workflows/test-node.yml new file mode 100644 index 0000000..3f0edfc --- /dev/null +++ b/.github/workflows/test-node.yml @@ -0,0 +1,24 @@ +name: Build Status + +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + strategy: + matrix: + node-version: [14.x] + os: [ubuntu-16.04, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test diff --git a/.gitignore b/.gitignore index 7938f33..0dd1731 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules sandbox.js +sandbox diff --git a/package.json b/package.json index 652c26d..5c52e65 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,9 @@ "devDependencies": { "standard": "^16.0.3" }, + "scripts": { + "test": "standard" + }, "repository": { "type": "git", "url": "https://github.com/mafintosh/dht-rpc.git"