diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0131df7..34354bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,21 +1,40 @@ -name: Test grammar +name: CI on: push: - branches: ["*"] + branches: [master] paths: - grammar.js - src/** - bindings/** - binding.gyp pull_request: - branches: ["*"] paths: - grammar.js - src/** - bindings/** - binding.gyp +concurrency: + group: ${{github.workflow}}-${{github.ref}} + cancel-in-progress: true + jobs: test: - uses: tree-sitter-grammars/.github/.github/workflows/ci.yml@main + name: Test parser + runs-on: ${{matrix.os}} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-14] + steps: + - name: Set up repository + uses: tree-sitter-grammars/actions/setup@main + with: + submodules: true + node-version: ${{vars.NODE_VERSION}} + - name: Run tests + uses: tree-sitter-grammars/actions/test@main + with: + test-library: ${{runner.os == 'Linux'}} + examples: examples/NeverSink-Filter/**/*.filter diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6c80c93 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "NeverSink-Filter"] + path = examples/NeverSink-Filter + url = https://github.com/NeverSinkDev/NeverSink-Filter + shallow = true diff --git a/examples/NeverSink-Filter b/examples/NeverSink-Filter new file mode 160000 index 0000000..92440cf --- /dev/null +++ b/examples/NeverSink-Filter @@ -0,0 +1 @@ +Subproject commit 92440cf47fe3364375704bcee3a20a1f0fe947fd