-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 1013 Bytes
/
ci.yaml
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
---
name: ci
on:
- push
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install ansible
run: |
python -m pip install --upgrade ansible ansible-lint
- name: create ansible.cfg with correct roles_path
run: printf '[defaults]\nroles_path=../' > ansible.cfg
- name: ansible-lint
run: ansible-lint .
- run: ansible-playbook tests/test.yml -i tests/inventory --syntax-check
name: basic role syntax check
- run: ansible-playbook tests/test.yml -i tests/inventory --become
name: install dotfiles
- name: test symbolic links
run: test "$(readlink -f ~/.zshrc.shared)" = "$HOME/dotfiles/zsh/zshrc.shared"
- name: check command existance in both shells
run: bash -c hash nvim batcat bmon
- run: zsh -c hash nvim batcat bmon
name: check command existance in both shells