Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
chore: enable github CI (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuxified authored Feb 8, 2021
1 parent 946cef2 commit 51a9026
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build

on:
push:
pull_request:
branches:
- "**:**" # For forks

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: "12"

- name: Display Node versions
run: |
node --version
npm --version
- name: Install dependencies
run: npm install

- name: Test corpus & parse examples
run: npm run test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"description": "Tree Parser support for Erlang",
"scripts": {
"gen": "tree-sitter generate",
"parse": "tree-sitter parse"
"parse": "tree-sitter parse",
"test": "yarn run gen && tree-sitter test"
},
"author": "Leandro Ostera <leandro@ostera.io>",
"license": "Apache-2.0",
"dependencies": {
"nan": "^2.14.1",
"prettier": "^2.2.1",
"tree-sitter-cli": "^0.17.1"
"tree-sitter-cli": "^0.17.3"
}
}

0 comments on commit 51a9026

Please # to comment.