diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-27 13:30:13 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-12-20 18:16:45 +0100 |
| commit | a3862c9802a3695b35eabfcd458236f93b54810b (patch) | |
| tree | 10972456ab6af5027e3e18f17255a2c986d74724 /tests/query/injections | |
| parent | ci: Remove "ensure_installed" from minimal_init.lua (diff) | |
| download | nvim-treesitter-a3862c9802a3695b35eabfcd458236f93b54810b.tar nvim-treesitter-a3862c9802a3695b35eabfcd458236f93b54810b.tar.gz nvim-treesitter-a3862c9802a3695b35eabfcd458236f93b54810b.tar.bz2 nvim-treesitter-a3862c9802a3695b35eabfcd458236f93b54810b.tar.lz nvim-treesitter-a3862c9802a3695b35eabfcd458236f93b54810b.tar.xz nvim-treesitter-a3862c9802a3695b35eabfcd458236f93b54810b.tar.zst nvim-treesitter-a3862c9802a3695b35eabfcd458236f93b54810b.zip | |
ci: add injection tests
Diffstat (limited to 'tests/query/injections')
| -rw-r--r-- | tests/query/injections/yaml/bash-on-github-actions.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/query/injections/yaml/bash-on-github-actions.yml b/tests/query/injections/yaml/bash-on-github-actions.yml new file mode 100644 index 000000000..ba56de193 --- /dev/null +++ b/tests/query/injections/yaml/bash-on-github-actions.yml @@ -0,0 +1,32 @@ +name: CI +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '16' + - name: Install dependencies + run: npm ci + # ^ bash + - name: Run tests + run: npm test + # ^ bash + - name: Parse Petalisp + run: | + git submodule init + git submodule update + if (( $(node_modules/tree-sitter-cli/tree-sitter parse test/Petalisp/**/*.lisp -q | wc -l) > 2 )); then # There are 2 known failures (strings that are not format strings but use ~X syntax) + exit 1 + else + echo "Successfully parsed Petalisp" + fi + # ^ bash + - name: Run tests + run: npm test |
