-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.33 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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: vint vim/.vim* vim/*.vim