-
-
Notifications
You must be signed in to change notification settings - Fork 691
39 lines (34 loc) · 1.58 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- { vim_version: "8.1", python_image: "3.8-bookworm", tag: "vim_81_py38" }
- { vim_version: "8.2", python_image: "3.8-bookworm", tag: "vim_82_py38" }
- { vim_version: "git", python_image: "3.8-bookworm", tag: "vim_git_py38" }
- { vim_version: "8.1", python_image: "3.9-bookworm", tag: "vim_81_py39" }
- { vim_version: "8.2", python_image: "3.9-bookworm", tag: "vim_82_py39" }
- { vim_version: "9.0", python_image: "3.9-bookworm", tag: "vim_90_py39" }
- { vim_version: "git", python_image: "3.9-bookworm", tag: "vim_git_py39" }
# Vim 8.1 and 8.2 do not build with python 3.10.
- { vim_version: "9.0", python_image: "3.10-bookworm", tag: "vim_90_py310" }
- { vim_version: "git", python_image: "3.10-bookworm", tag: "vim_git_py310" }
# Vim 8.1 and 8.2 hang forever with python 3.11.
- { vim_version: "9.0", python_image: "3.11-bookworm", tag: "vim_90_py311" }
- { vim_version: "git", python_image: "3.11-bookworm", tag: "vim_git_py311" }
name: Build & Test using Docker
steps:
- uses: actions/checkout@v2
- name: Build the image
run: docker build -t ultisnips:${{ matrix.tag }} --build-arg PYTHON_IMAGE=${{ matrix.python_image }} --build-arg VIM_VERSION=${{ matrix.vim_version }} .
- name: Run the tests
run: docker run --rm -t ultisnips:${{ matrix.tag }} docker/run_tests.sh