Merge pull request #5 from 1995parham-me/dependabot/github_actions/ac… #49
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: 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 |