From 6e34fb334b092c5784e4ad1e448c61e12ce08eea Mon Sep 17 00:00:00 2001 From: Mads Kjeldgaard Date: Tue, 30 Apr 2024 09:23:30 +0200 Subject: [PATCH] ci: Add ci test --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1fe513c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +# When anything is pushed, install tree-sitter and run the command `tree-sitter generate && tree-sitter test` in the root directory of the repository. +name: Tree-sitter Test +on: + [push] +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apt-get install -y libtree-sitter-dev + + - name: Install Tree-sitter + run: | + git clone https://github.com/tree-sitter/tree-sitter.git + cd tree-sitter + make + sudo make install + + - name: Generate and Test + run: | + tree-sitter generate + tree-sitter test