Skip to content

Commit 3e665fd

Browse files
committed
[add] github-actions
1 parent 60fd0c6 commit 3e665fd

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

.github/workflows/tox.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: tox
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [2.7, 3.9]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@main
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@main
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Install Dependencies
27+
run: |
28+
pip install tox
29+
30+
- name: Run Test
31+
run: |
32+
cd $GITHUB_WORKSPACE/python
33+
tox -e py

.github/workflows/vader.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Vader
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
vim:
16+
- 'v8.2.0000'
17+
- 'v8.1.0000'
18+
- 'v8.0.0000'
19+
- 'v7.4'
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@main
24+
25+
- name: Setup dotnet
26+
uses: actions/setup-dotnet@main
27+
with:
28+
dotnet-version: '3.1.x'
29+
30+
- name: Setup Vim
31+
uses: rhysd/action-setup-vim@v1
32+
with:
33+
vim_version: ${{ matrix.vim }}
34+
35+
- name: Install Dependencies
36+
run: |
37+
installer/omnisharp-manager.sh -l $HOME/.omnisharp/omnisharp-roslyn
38+
git clone https://github.com/junegunn/vader.vim.git $GITHUB_WORKSPACE/../vader.vim
39+
40+
- name: Run Test
41+
run: |
42+
cd test
43+
vim -esNu vimrc -c 'Vader! *'
44+
if: ${{ always() }}

0 commit comments

Comments
 (0)