Merge pull request #131 from uga-rosa/job #565
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: ${{ matrix.os }} / ${{ matrix.vi }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, windows-2022, macos-12] | |
vi: [neovim, vim] | |
steps: | |
- name: Init git | |
run: | | |
git config --global user.email [email protected] | |
git config --global user.name vim-jetpack | |
- name: Clone vim-jetpack | |
uses: actions/checkout@v3 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Install Lua | |
uses: leafo/gh-actions-lua@v10 | |
if: ${{ contains(matrix.os, 'windows') }} | |
- name: Install vim-themis | |
uses: actions/checkout@v3 | |
with: | |
repository: thinca/vim-themis | |
path: vim-themis | |
- name: Install ${{ matrix.vi }} | |
uses: rhysd/action-setup-vim@v1 | |
id: vim | |
with: | |
version: stable | |
neovim: ${{ matrix.vi == 'neovim' }} | |
- name: Run tests | |
timeout-minutes: 5 | |
env: | |
THEMIS_VIM: ${{ steps.vim.outputs.executable }} | |
run: ./vim-themis/bin/themis ./test/test.vim | |
post-test: | |
name: All tests passed | |
runs-on: ubuntu-22.04 | |
needs: test | |
steps: | |
- run: echo ok |