From a3862c9802a3695b35eabfcd458236f93b54810b Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 27 Nov 2021 13:30:13 +0100 Subject: ci: add injection tests --- .../injections/yaml/bash-on-github-actions.yml | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/query/injections/yaml/bash-on-github-actions.yml (limited to 'tests/query/injections') 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 -- cgit v1.2.3-70-g09d2