OpenModelica / tree-sitter-modelica

A tree-sitter parser for Modelica
Other
3 stars 5 forks source link

Add CI #3

Closed AnHeuermann closed 1 year ago

AnHeuermann commented 1 year ago

We should add a GitHub workflow to test this repository. Of course this also needs some working tests from #1.

name: build-parser
run-name: Build tree-sitter-modelica

on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: '18'
      - run: npm ci           # clean install
      - run: npm run build    # Run build script
      - run: npm test         # Run test script