Skip to content

Commit 4d40d0d

Browse files
authored
Merge pull request #1130 from rhysd/ci-checkout-v2
Use checkout action v2
2 parents ce3add9 + d9e03c3 commit 4d40d0d

File tree

7 files changed

+43
-25
lines changed

7 files changed

+43
-25
lines changed

.github/workflows/linux_neovim.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
neovim_version: nightly
3030
runs-on: ${{matrix.os}}
3131
steps:
32-
- uses: actions/checkout@v1
32+
- uses: actions/checkout@v2
3333
- name: Download neovim
3434
shell: bash
3535
run: |
@@ -58,13 +58,16 @@ jobs:
5858
env:
5959
GO111MODULE: 'on'
6060
- name: Download test runner
61-
shell: bash
62-
run: git clone --depth 1 --branch v1.5.5 --single-branch https://github.com/thinca/vim-themis ~/themis
61+
uses: actions/checkout@v2
62+
with:
63+
repository: thinca/vim-themis
64+
path: ./vim-themis
65+
ref: v1.5.5
6366
- name: Run tests
6467
shell: bash
6568
run: |
6669
export PATH=~/nvim/bin:$PATH
67-
export PATH=~/themis/bin:$PATH
70+
export PATH=./vim-themis/bin:$PATH
6871
export PATH=./bin:$PATH
6972
export THEMIS_VIM=nvim
7073
nvim --version

.github/workflows/linux_vim.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
glibc_version: 2.15
3232
runs-on: ${{matrix.os}}
3333
steps:
34-
- uses: actions/checkout@v1
34+
- uses: actions/checkout@v2
3535
- name: Download vim
3636
shell: bash
3737
run: |
@@ -60,13 +60,16 @@ jobs:
6060
env:
6161
GO111MODULE: 'on'
6262
- name: Download test runner
63-
shell: bash
64-
run: git clone --depth 1 --branch v1.5.5 --single-branch https://github.com/thinca/vim-themis ~/themis
63+
uses: actions/checkout@v2
64+
with:
65+
repository: thinca/vim-themis
66+
path: ./vim-themis
67+
ref: v1.5.5
6568
- name: Run tests
6669
shell: bash
6770
run: |
6871
export PATH=~/vim/bin:$PATH
69-
export PATH=~/themis/bin:$PATH
72+
export PATH=./vim-themis/bin:$PATH
7073
export PATH=./bin:$PATH
7174
export THEMIS_VIM=vim
7275
vim --version

.github/workflows/mac_neovim.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,19 @@ jobs:
2929
neovim_version: nightly
3030
runs-on: ${{matrix.os}}
3131
steps:
32-
- uses: actions/checkout@v1
32+
- uses: actions/checkout@v2
3333
- name: Download neovim
3434
shell: bash
3535
run: curl -L https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-macos.tar.gz -o ~/nvim.tar.gz
3636
- name: Extract neovim
3737
shell: bash
3838
run: tar xzf ~/nvim.tar.gz -C ~/
3939
- name: Download test runner
40-
shell: bash
41-
run: git clone --depth 1 --branch v1.5.5 --single-branch https://github.com/thinca/vim-themis ~/themis
40+
uses: actions/checkout@v2
41+
with:
42+
repository: thinca/vim-themis
43+
path: ./vim-themis
44+
ref: v1.5.5
4245
- name: Cache gopls
4346
id: cache-gopls
4447
uses: actions/cache@v2
@@ -64,7 +67,7 @@ jobs:
6467
shell: bash
6568
run: |
6669
export PATH=~/nvim-osx64/bin:$PATH
67-
export PATH=~/themis/bin:$PATH
70+
export PATH=./vim-themis/bin:$PATH
6871
export PATH=./bin:$PATH
6972
export THEMIS_VIM=nvim
7073
nvim --version

.github/workflows/mac_vim.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ jobs:
1717
build:
1818
runs-on: macos-latest
1919
steps:
20-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v2
2121
- name: Install MacVim
2222
shell: bash
2323
run: brew install macvim
2424
- name: Download test runner
25-
shell: bash
26-
run: git clone --depth 1 --branch v1.5.5 --single-branch https://github.com/thinca/vim-themis ~/themis
25+
uses: actions/checkout@v2
26+
with:
27+
repository: thinca/vim-themis
28+
path: ./vim-themis
29+
ref: v1.5.5
2730
- name: Cache gopls
2831
id: cache-gopls
2932
uses: actions/cache@v2
@@ -48,7 +51,7 @@ jobs:
4851
- name: Run tests
4952
shell: bash
5053
run: |
51-
export PATH=~/themis/bin:$PATH
54+
export PATH=./vim-themis/bin:$PATH
5255
export PATH=./bin:$PATH
5356
export THEMIS_VIM=vim
5457
vim --version

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: runner / vint
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v2
1717
- name: vint
1818
uses: reviewdog/action-vint@v1
1919
with:

.github/workflows/windows_neovim.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
neovim_arch: win64
3232
runs-on: ${{matrix.os}}
3333
steps:
34-
- uses: actions/checkout@v1
34+
- uses: actions/checkout@v2
3535
- name: Download neovim
3636
shell: PowerShell
3737
run: Invoke-WebRequest -Uri https://github.com/neovim/neovim/releases/download/${{matrix.neovim_version}}/nvim-${{matrix.neovim_arch}}.zip -OutFile neovim.zip
@@ -60,13 +60,16 @@ jobs:
6060
env:
6161
GO111MODULE: 'on'
6262
- name: Download test runner
63-
shell: PowerShell
64-
run: git clone --depth 1 --branch v1.5.5 --single-branch https://github.com/thinca/vim-themis $env:USERPROFILE\themis
63+
uses: actions/checkout@v2
64+
with:
65+
repository: thinca/vim-themis
66+
path: ./vim-themis
67+
ref: v1.5.5
6568
- name: Run tests
6669
shell: cmd
6770
run: |
6871
SET PATH=%USERPROFILE%\Neovim\bin;%PATH%;
69-
SET PATH=%USERPROFILE%\themis\bin;%PATH%;
72+
SET PATH=.\vim-themis\bin;%PATH%;
7073
SET PATH=.\bin;%PATH%;
7174
SET THEMIS_VIM=nvim
7275
nvim --version

.github/workflows/windows_vim.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
vim_ver_path: vim80
3939
runs-on: ${{matrix.os}}
4040
steps:
41-
- uses: actions/checkout@v1
41+
- uses: actions/checkout@v2
4242
- name: Download vim
4343
shell: PowerShell
4444
run: Invoke-WebRequest -Uri https://github.com/vim/vim-win32-installer/releases/download/v${{matrix.vim_version}}/gvim_${{matrix.vim_version}}_${{matrix.vim_arch}}.zip -OutFile vim.zip
@@ -67,13 +67,16 @@ jobs:
6767
env:
6868
GO111MODULE: 'on'
6969
- name: Download test runner
70-
shell: PowerShell
71-
run: git clone --depth 1 --branch v1.5.5 --single-branch https://github.com/thinca/vim-themis $env:USERPROFILE\themis
70+
uses: actions/checkout@v2
71+
with:
72+
repository: thinca/vim-themis
73+
path: ./vim-themis
74+
ref: v1.5.5
7275
- name: Run tests
7376
shell: cmd
7477
run: |
7578
SET PATH=%USERPROFILE%\vim\${{matrix.vim_ver_path}};%PATH%;
76-
SET PATH=%USERPROFILE%\themis\bin;%PATH%;
79+
SET PATH=.\vim-themis\bin;%PATH%;
7780
SET PATH=.\bin;%PATH%;
7881
vim --version
7982
themis

0 commit comments

Comments
 (0)