GitHub Action 㧠Vim ã Neovim ãç°¡åã«ã¤ã³ã¹ãã¼ã«ã§ãã action-setup-vim ãã¤ãã£ã
ä»é±ã¡ã¾ã¡ã¾ã¨ git-messenger.vim ã clever-f.vim ã® CI ã GitHub Actions ã«ç§»è¡ãã¦ãã¾ããï¼æ¯å Vim ãã©ã°ã¤ã³ã® CI ã®ããã« Vim ã Neovim ã®ã»ããã¢ãããæ¸ãã®ãé¢åãªã®ã¨ï¼Windows ä¸ã§ Vim ã Neovim ãå ¥ããã®ãï¼Powershell ã«ä¸æ £ããªãã¨ãããï¼å¤§å¤ã ã£ãã®ã§ï¼GitHub Action ã¨ãã¦åãåºããã¨ã«ãã¾ããï¼
1ã¹ããã㧠Vim ã Neovim ãç°¡åã«ã¤ã³ã¹ãã¼ã«ã§ãã¾ãï¼
- Vim 㨠Neovim 両対å¿
- Linux, macOS, Windows ãã¹ã¦ã§åä½
- 'stable' 㨠'nightly' ã®ä¸¡æ¹ã«å¯¾å¿
- 追è¨: ç¹å®ãã¼ã¸ã§ã³ã«ã対å¿ï¼v1.1.0ï¼
使ãæ¹
ä¸è¨ã®ããã«ã¹ããããæ¸ãã° Vim ã¾ã㯠Neovim ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãï¼
macOS ã¾ã㯠Linux ã§å®å®ç Vim ãã¤ã³ã¹ãã¼ã«:
- uses: rhysd/action-setup-vim@v1
Windows ã§ã¯ github-token
ã input ã¨ãã¦ä¸ããå¿
è¦ãããã¾ãï¼ããã¯ï¼vim-win32-installer ããææ°ã®ãªãªã¼ã¹ãæã£ã¦ããå¿
è¦ãããï¼ãã®ããã« GitHub API ãå©ãã¦ããããã§ãï¼
- uses: rhysd/action-setup-vim@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }}
ææ°ã® Vim ãã¤ã³ã¹ãã¼ã«ããã«ã¯ version: nightly
ã input ã«æå®ãã¾ãï¼
- uses: rhysd/action-setup-vim@v1 with: version: nightly github-token: ${{ secrets.GITHUB_TOKEN }}
Neovim ãã¤ã³ã¹ãã¼ã«ããã«ã¯ neovim: true
ã input ã«æå®ãã¾ãï¼ææ°ã® stable ã® Neovim ããã¹ã¦ã® OS ã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãï¼Vim ã¨ã¯ç°ãªãï¼Windows ä¸ã§ã github-token
input ã¯ä¸è¦ã§ãï¼
- uses: rhysd/action-setup-vim@v1 with: neovim: true
æ¨æ©ãã«ããããã°ããã® nightly ã® Neovim ãã¤ã³ã¹ãã¼ã«ããã«ã¯ version: nightly
ãæå®ããã° OK ã§ãï¼
- uses: rhysd/action-setup-vim@v1 with: neovim: true version: nightly
ãããã®ã¹ããããå®è¡å¾ï¼Vim ãã¤ã³ã¹ãã¼ã«ããå ´å㯠vim
ã³ãã³ããï¼Neovim ãã¤ã³ã¹ãã¼ã«ããå ´å㯠nvim
ã³ãã³ããããããå©ç¨å¯è½ã«ãªã£ã¦ããã¯ãã§ãï¼
ã¾ãï¼action ã® executable
output ã¨ãã¦ã¤ã³ã¹ãã¼ã«ãã Vim ã¾ã㯠Neovim ã®å®è¡ãã¡ã¤ã«ã¸ã®ãã«ãã¹ãã»ãããã¦ãã¦ï¼ããã使ããã¨ãã§ãã¾ãï¼
ä¾ãã° checkout@v2
㧠themis.vim ãã¤ã³ã¹ãã¼ã«ãï¼action-setup-vim 㧠Vim ãã¤ã³ã¹ãã¼ã«ãã¦åä½ãã¹ããèµ°ãããä¾ã¯
# ãã¹ãããããã©ã°ã¤ã³ã checkout - uses: actions/checkout@v2 # themis.vim ã checkout - uses: actions/checkout@v2 with: repository: thinca/vim-themis path: vim-themis # Vim ãã¤ã³ã¹ãã¼ã« - uses: rhysd/action-setup-vim@v1 id: vim # ãã©ã°ã¤ã³ã®åä½ãã¹ãã themis.vim ã§å®è¡ - name: Run unit tests with themis.vim env: THEMIS_VIM: ${{ steps.vim.outputs.executable }} run: | ./vim-themis/bin/themis ./test
å®éã« clever-f.vim ã®ã¯ã¼ã¯ããã¼ ã§å©ç¨ãã¦ãã¾ãï¼
ã¤ã³ã¹ãã¼ã«ããã Vim ããã³ Neovim ã®è©³ç´°
ã¤ã³ã¹ãã¼ã«å
㯠OS 㨠version
input ã«ãã£ã¦ä¸è¨ã®ããã«ãªã£ã¦ãã¾ãï¼åªå
度ã¯
- ã·ã¹ãã ã®ããã±ã¼ã¸ããã¼ã¸ã£
- å ¬å¼ãªãªã¼ã¹
- ã½ã¼ã¹ãããã«ã
ã¨ãªã£ã¦ãã¾ãï¼ã¦ã¼ã¶æ°ãå®è¡ã®éããèæ ®ãã¦ãããªã£ã¦ãã¾ãï¼
Vim
OS | Version | Installation |
---|---|---|
Linux | stable |
gvim-gnome ããã±ã¼ã¸ã apt ã§ã¤ã³ã¹ãã¼ã« |
Linux | nightly |
vim/vim ãªãã¸ããªã® HEAD ããã«ã |
macOS | stable |
brew install macvim 㧠Homebrew ããã¤ã³ã¹ãã¼ã« |
macOS | nightly |
vim ãªãã¸ããªã® HEAD ããã«ã |
Widnows | stable |
Windows ã§ã®å ¬å¼å®å®çã¯ç¡ãã®ã§ï¼Nightly ã¨åã |
Windows | nightly |
å ¬å¼ã¤ã³ã¹ãã¼ã© repository ã®ãªãªã¼ã¹ããã¤ã³ã¹ãã¼ã« |
Neovim
OS | Version | Installation |
---|---|---|
Linux | stable |
Neovim å ¬å¼ã® stable release ããã¤ã³ã¹ãã¼ã« |
Linux | nightly |
Neovim å ¬å¼ã® nightly release ããã¤ã³ã¹ãã¼ã« |
macOS | stable |
Homebrew ã使ã£ã¦ brew install neovim ã§ã¤ã³ã¹ãã¼ã« |
macOS | nightly |
Neovim å ¬å¼ã® nightly release ããã¤ã³ã¹ãã¼ã« |
Windows | stable |
Neovim å ¬å¼ã® stable release ããã¤ã³ã¹ãã¼ã« |
Windows | nightly |
Neovim å ¬å¼ã® nightly release ããã¤ã³ã¹ãã¼ã« |
å¶é
ä»ã®ã¨ããï¼ç¹å®ã®ãã¼ã¸ã§ã³ãæå®ãã¦ã¤ã³ã¹ãã¼ã«ã¯ã§ãã¾ããï¼æè¡çå¶ç´ãããããã§ã¯ãªãã®ã§ï¼ããéè¦ãããã°ããããããã¾ããï¼ v1.1.0 ã§æå®å¯è½ã«ãªãã¾ããï¼
# Vim v8.2.0126 ãå ¨ã¦ã® OS ã§ã¤ã³ã¹ãã¼ã«ï¼Windows ã§ã github-token input ã¯å¿ è¦ããã¾ãã - uses: rhysd/action-setup-vim@v1 with: version: v8.2.0126 # Neovim v0.4.3 ãå ¨ã¦ã® OS ã§ã¤ã³ã¹ãã¼ã« - uses: rhysd/action-setup-vim@v1 with: neovim: true version: v0.4.3
ã¾ãï¼GUI ãã¼ã¸ã§ã³ã«ã¤ãã¦ã¯ç¾ç¶ã§ã¯ãµãã¼ããã¦ãã¾ãããï¼ãªãªã¼ã¹ç©ã«å«ã¾ããå ´åã¯ã¤ã³ã¹ãã¼ã«ããã¾ãï¼å ·ä½çã«ã¯ä¸è¨ã®å ´åã§ã:
ã¾ã¨ã
Vim ã¾ã㯠Neovim ãç°¡åã«ã¤ã³ã¹ãã¼ã«ã§ãã action action-setup-vim ãä½æãã¾ããï¼ GitHub Action ã® Vim ãã©ã°ã¤ã³ CI ã¸ã®å°å ¥ã®æ·å± ãå人çã«ãã£ã¨ä¸ãã£ãã®ã§ï¼ä»ã®ãã©ã°ã¤ã³ã«ã¤ãã¦ãé 次移è¡ãã¦ããããã¨ããï¼