mirror of
https://github.com/posva/vim-vue.git
synced 2026-02-26 01:57:14 +08:00
Migrate to GitHub Actions
Introduces a configuration for GitHub Actions to test with various operating systems and versions of Vim.
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
FROM alpine:3.7
|
|
||||||
RUN apk add --no-cache make vim git
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
# posva/vim-make
|
|
||||||
|
|
||||||
Small docker image with vim, make and git
|
|
||||||
|
|
||||||
## Building
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cd .circleci
|
|
||||||
docker rmi vim-make # remove old image
|
|
||||||
docker build -t vim-make .
|
|
||||||
docker run -it vim-make /bin/date
|
|
||||||
docker commit $(docker ps -lq) vim-make
|
|
||||||
docker push posva/vim-make:0.3 # replace the tag with a new one
|
|
||||||
docker container rm $(docker ps -lq) # remove container
|
|
||||||
```
|
|
||||||
|
|
||||||
## Cleaning
|
|
||||||
|
|
||||||
To remove old images and containers, use `docker images` and `docker ps -a`.
|
|
||||||
Then remove them with `docker rmi <image>` and `docker container rm <container>`
|
|
||||||
|
|
||||||
## Update `config.yml`
|
|
||||||
|
|
||||||
Make sure to update the tag in the `image` section of `.config.yml`
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
version: 2
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
docker:
|
|
||||||
- image: posva/vim-make:0.2
|
|
||||||
|
|
||||||
working_directory: ~/repo
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
|
|
||||||
- run: make dependencies
|
|
||||||
- run: make test
|
|
||||||
22
.github/workflows/test.yml
vendored
Normal file
22
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
editor: [vim, neovim]
|
||||||
|
version: [stable, nightly]
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: rhysd/action-setup-vim@v1
|
||||||
|
with:
|
||||||
|
version: ${{ matrix.version }}
|
||||||
|
neovim: ${{ matrix.editor == 'neovim' }}
|
||||||
|
- run: make test-${{ matrix.editor }}
|
||||||
8
Makefile
8
Makefile
@@ -1,7 +1,9 @@
|
|||||||
test: dependencies
|
test: test-vim test-neovim
|
||||||
|
|
||||||
|
test-vim: dependencies
|
||||||
vim -u test/vimrc -c 'Vader! test/*.vader'
|
vim -u test/vimrc -c 'Vader! test/*.vader'
|
||||||
|
|
||||||
test-nvim: dependencies
|
test-neovim: dependencies
|
||||||
VADER_OUTPUT_FILE=/dev/stderr nvim -u test/vimrc -c 'Vader! test/*.vader' --headless
|
VADER_OUTPUT_FILE=/dev/stderr nvim -u test/vimrc -c 'Vader! test/*.vader' --headless
|
||||||
|
|
||||||
dependencies = \
|
dependencies = \
|
||||||
@@ -25,4 +27,4 @@ dependencies:
|
|||||||
clean:
|
clean:
|
||||||
rm -rf pack
|
rm -rf pack
|
||||||
|
|
||||||
.PHONY: test test-nvim dependencies clean
|
.PHONY: test test-vim test-neovim dependencies clean
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# vim-vue [](https://circleci.com/gh/posva/vim-vue)
|
# vim-vue
|
||||||
|
|
||||||
Vim syntax highlighting for [Vue
|
Vim syntax highlighting for [Vue
|
||||||
components](https://vuejs.org/v2/guide/single-file-components.html).
|
components](https://vuejs.org/v2/guide/single-file-components.html).
|
||||||
|
|||||||
Reference in New Issue
Block a user