summaryrefslogtreecommitdiffstats
path: root/.github/workflows/tests.yml
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-11-20 16:55:26 +0100
committerStephan Seitz <stephan.seitz@fau.de>2021-11-24 17:29:55 +0100
commit771abaf53198a8b1aebff3de75ed2919b83ced45 (patch)
tree3d67f801ac83fff5eb88d06415a3f1bed5a0e533 /.github/workflows/tests.yml
parentMark failing indent tests to add them to CI (diff)
downloadnvim-treesitter-771abaf53198a8b1aebff3de75ed2919b83ced45.tar
nvim-treesitter-771abaf53198a8b1aebff3de75ed2919b83ced45.tar.gz
nvim-treesitter-771abaf53198a8b1aebff3de75ed2919b83ced45.tar.bz2
nvim-treesitter-771abaf53198a8b1aebff3de75ed2919b83ced45.tar.lz
nvim-treesitter-771abaf53198a8b1aebff3de75ed2919b83ced45.tar.xz
nvim-treesitter-771abaf53198a8b1aebff3de75ed2919b83ced45.tar.zst
nvim-treesitter-771abaf53198a8b1aebff3de75ed2919b83ced45.zip
ci: Add workflow for tests
Diffstat (limited to '.github/workflows/tests.yml')
-rw-r--r--.github/workflows/tests.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 000000000..a05c94508
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,42 @@
+name: Tests
+
+on: [push, pull_request]
+
+jobs:
+ check_compilation_unix_like:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest]
+ cc: [ gcc ]
+
+ name: Run tests
+ runs-on: ${{ matrix.os }}
+ env:
+ CC: ${{ matrix.cc }}
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+
+ - name: Test Dependencies
+ run: |
+ mkdir -p ~/.local/share/nvim/site/pack/plenary.nvim/start
+ cd ~/.local/share/nvim/site/pack/plenary.nvim/start
+ git clone https://github.com/nvim-lua/plenary.nvim
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly --profile minimal
+ ~/.cargo/bin/cargo install --git https://github.com/theHamsta/highlight-assertions
+
+ - name: Install and prepare Neovim
+ env:
+ NVIM_TAG: v0.5.1
+ TREE_SITTER_CLI_TAG: v0.20.0
+ run: |
+ bash ./scripts/ci-install-${{ matrix.os }}.sh
+
+ - name: Compile parsers Unix like
+ if: matrix.os != 'windows-latest'
+ run: |
+ nvim --headless -c "TSInstallSync all" -c "q"
+
+ - name: Tests
+ run: PATH=~/.cargo/bin:$PATH ./scripts/run_tests.sh