diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..b6ba1e4a3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Node.js CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [15.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/package.json b/package.json index 0c798279c..89cf44efb 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "tree-sitter grammar for Emacs Lisp", "main": "bindings/node", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "tree-sitter test" }, "author": "", "license": "MIT",