diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..82c1420 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,55 @@ +name: test + +on: + push: + branches: + - master + - dev + - temp + - feature/githubactions + pull_request: + branches: + - master + - dev + - temp + +jobs: + + test: + name: ${{ matrix.editor }} on ${{ matrix.os }} + strategy: + matrix: + editor: + - Vim + - Neovim + + os: + - ubuntu-24.04 + - ubuntu-22.04 + - ubuntu-20.04 + + include: + - editor: Vim + installation: "" + cmd: vim + - editor: Neovim + installation: sudo apt-get update -y && sudo apt-get install -y neovim + cmd: nvim + runs-on: ${{ matrix.os }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install + run: ${{ matrix.installation }} + + - name: Install vim-themis + run: git clone https://github.com/thinca/vim-themis + + - name: Show version + run: ${{ matrix.cmd }} --version + + - name: Run tests + env: + THEMIS_VIM: ${{ matrix.cmd }} + run: vim-themis/bin/themis --reporter spec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 78b6196..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: minimal -dist: focal -jobs: - include: - - name: neovim - env: THEMIS_VIM=nvim - install: - - sudo apt update -y - - sudo apt install -y neovim - - git clone https://github.com/thinca/vim-themis - script: - - nvim --version - - vim-themis/bin/themis --reporter spec - - name: vim - install: - - git clone https://github.com/thinca/vim-themis - script: - - vim --version - - vim-themis/bin/themis --reporter spec -install: -branches: - - master - - dev - - temp diff --git a/README.md b/README.md index 50ee3b5..36d6b57 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ lexima.vim ========== -[![Build Status](https://app.travis-ci.com/cohama/lexima.vim.svg?branch=master)](https://app.travis-ci.com/cohama/lexima.vim) +[![test](https://github.com/cohama/lexima.vim/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/cohama/lexima.vim/actions/workflows/test.yml) Auto close parentheses and repeat by dot dot dot...