From 7d220401e1c9fa76943a40f59a8b691ad447b916 Mon Sep 17 00:00:00 2001 From: Joel Goguen Date: Sat, 2 Jul 2022 21:59:09 -0400 Subject: [PATCH] Add GitHub Actions CI --- .github/workflows/ci.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..74e3fa8 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,37 @@ +--- +# vim: fileencoding=UTF-8:expandtab:autoindent:ts=2:sts=2:sw=2:filetype=yaml +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow +name: CI + +# Controls when the action will run. Workflow runs when manually triggered +# using the UI or API. +'on': + push: + branches: + - '*' + pull_request: + +jobs: + test: + runs-on: 'ubuntu-latest' + + steps: + - name: Check out tmpl.vim + uses: actions/checkout@v3 + with: + path: tmpl.vim + + - name: Fetch vader + uses: actions/checkout@v3 + with: + repository: junegunn/vader.vim + path: vader.vim + + - name: Install dependencies + run: sudo apt install -y neovim vim-nox + + - name: Test with vim + run: VIM_BIN=vim ./tmpl.vim/tests/run_tests.sh + + - name: Test with neovim + run: VIM_BIN=nvim ./tmpl.vim/tests/run_tests.sh