Fix badges #5
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: Continuous Integration | |
on: push | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run linter | |
uses: ansible/ansible-lint@v24 | |
- name: Syntax Check | |
run: ansible-playbook -i "localhost," test.yml --syntax-check | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Ansible | |
run: pip install ansible | |
- name: First run | |
run: ansible-playbook -i "localhost," -c local test.yml --extra-vars "ansible_python_interpreter=auto nvm_install_path=~/.nvmbis" | |
- name: Second run | |
run: > | |
ansible-playbook -i "localhost," -c local test.yml --extra-vars "ansible_python_interpreter=auto nvm_install_path=~/.nvmbis" | |
| grep -q 'changed=0.*failed=0' | |
&& (echo 'Idempotence test: pass' && exit 0) | |
|| (echo 'Idempotence test: fail' && exit 1) | |
- name: Check nvm version | |
run: . ~/.profile && nvm --version | grep 0.31.5 | |
- name: Check Node.js version | |
run: . ~/.profile && node --version | grep 6.9.1 |