From 00ab8947d3af7ea4dff85a058dcc3012269ff510 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sun, 15 Aug 2021 10:18:05 -0700 Subject: [PATCH] Configuring tests on GH actions --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml 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",