Skip to content

Replace appveyor with GitHub actions #2705

Replace appveyor with GitHub actions

Replace appveyor with GitHub actions #2705

Workflow file for this run

---
name: CI
on: # yamllint disable-line rule:truthy
push:
branches: [ master ] # yamllint disable-line rule:brackets
tags:
- v[0-9]+.[0-9]+.x
- v[0-9]+.[0-9]+.[0-9]+
pull_request:
branches: [ master ] # yamllint disable-line rule:brackets
jobs:
build_image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build docker run image
shell: bash
env:
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_HUB_PASS: ${{ secrets.DOCKER_HUB_PASS }}
run: ./run-tests --build-image
test_ale:
needs: build_image
runs-on: ubuntu-latest
strategy:
matrix:
vim-version:
- '--vim-80-only'
- '--vim-90-only'
- '--neovim-07-only'
- '--neovim-08-only'
- '--lua-only'
- '--linters-only'
steps:
- uses: actions/checkout@v4
- name: Run tests
run: ./run-tests -v ${{ matrix.vim-version }}
test_ale_windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- editor: vim
neovim: false
version: v9.0.0000
headless: ''
- editor: neovim
neovim: true
version: v0.7.0
headless: '--headless'
- editor: neovim
neovim: true
version: v0.8.0
headless: '--headless'
steps:
- uses: actions/checkout@v4
- name: Setup ${{ matrix.editor }} ${{ matrix.version }}
uses: rhysd/action-setup-vim@v1
id: editor
with:
neovim: ${{ matrix.neovim }}
version: ${{ matrix.version }}
- name: Clone Vader
shell: cmd
run: |
git clone https://github.com/junegunn/vader.vim C:\vader
git -C C:\vader checkout -qf c6243dd81c98350df4dec608fa972df98fa2a3af
- name: Create testplugin junction
shell: cmd
run: mklink /J C:\testplugin "%GITHUB_WORKSPACE%"
- name: Run tests
shell: cmd
env:
VIM_EXE: ${{ steps.editor.outputs.executable }}
VIM_HEADLESS: ${{ matrix.headless }}
working-directory: C:\testplugin
run: |
set TMP=C:\tmp
set TEMP=C:\tmp
mkdir C:\tmp
run-tests.bat