diff options
author | w0rp <devw0rp@gmail.com> | 2023-09-07 20:29:35 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2023-09-07 20:29:35 +0100 |
commit | 99a33d8d3fc423d83cabdae1c95c3bc2438b313b (patch) | |
tree | f6543ce481bb2facb113d2375281971c4f726cf9 /.github | |
parent | 108e858d61bcd5962ca404f12d8b56e5986739c1 (diff) | |
download | ale-99a33d8d3fc423d83cabdae1c95c3bc2438b313b.zip |
Try to test ALE on Windows in GitHub
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/main.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27d02c1a..45cfc146 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,3 +35,51 @@ jobs: - uses: actions/checkout@v2 - name: Run tests run: ./run-tests -v ${{ matrix.vim-version }} + test_ale_windows: + runs-on: windows-latest + steps: + - name: Configure Git + # Stop git from changing newlines + run: git config --global core.autocrlf input + - uses: actions/checkout@v2 + path: C:\testplugin + - name: Try to Restore Vim + id: cache-vim + uses: actions/cache@v3 + with: + path: C:\vim + key: ${{ runner.os }}-vim + - name: Install Vim + if: steps.cache-vim.outputs.cache-hit != 'true' + shell: pwsh + run: >- + if (!(Test-Path -Path C:\vim)){ + Add-Type -A System.IO.Compression.FileSystem + Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586w32.zip ` + -OutFile C:\vim.zip + [IO.Compression.ZipFile]::ExtractToDirectory('C:\vim.zip', 'C:\vim') + Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586rt.zip ` + -OutFile C:\rt.zip + [IO.Compression.ZipFile]::ExtractToDirectory('C:\rt.zip', 'C:\vim') + } + - name: Try to Restore Vader + id: cache-vader + uses: actions/cache@v3 + with: + path: C:\vader + key: ${{ runner.os }}-vader + - name: Install Vader + if: steps.cache-vim-vader.outputs.cache-hit != 'true' + shell: pwsh + run: + if (!(Test-Path -Path C:\vader)){ + git clone https://github.com/junegunn/vader.vim C:\vader 2> $null + cd C:\vader + git checkout -qf c6243dd81c98350df4dec608fa972df98fa2a3af 2> $null + } + - name: Run tests + # yamllint disable rule:line-length + run: | + cd C:\testplugin + C:\vim\vim\vim80\vim.exe -u test\vimrc "+Vader! test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*.vader" + # yamllint enable rule:line-length |