fix vint job #404
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
- push | |
- pull_request | |
jobs: | |
deploy-on-physical-os: | |
name: on physical OS | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macOS-latest | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rm -f ~/.bash{_logout,_profile,rc} ~/.docker/config.json ~/.gitconfig ~/.profile | |
- run: make deploy | |
- run: make test | |
- run: test "$(make test)" = 'done.' | |
deploy-on-docker: | |
name: on Docker | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: docker build -t "${GITHUB_REPOSITORY}" . | |
- run: > | |
docker run --rm "${GITHUB_REPOSITORY}" | |
bash -c 'rm -f ~/.bashrc ~/.profile && make deploy >/dev/null && [ "$(make test)" = "done." ]' | |
shellcheck: | |
name: shellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker://koalaman/shellcheck:stable | |
with: | |
args: > | |
bash/.bash_logout | |
bash/.bash_profile | |
bash/.bashrc | |
bash/.profile | |
vint: | |
name: vint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- run: pip install vim-vint | |
- run: > | |
find vim -name '.vimrc*' -or -name '*.vim' -print0 | xargs -0 vint |