Skip to content

Commit

Permalink
feat: adding changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 21, 2022
1 parent 6e6f20c commit 895f0fa
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,26 +55,24 @@ jobs:
- name: Uninstall built-in homebrew
run: tests/uninstall-homebrew.sh

- name: Install test dependencies
- name: Uninstall built-in browsers
run: |
sudo pip3 install --upgrade pip
sudo pip3 install ansible-core
python --version; python -c "import ssl; print ssl.OPENSSL_VERSION"
ansible-galaxy install -r requirements.yml
sudo rm -rf /Applications/Firefox.app
sudo rm -rf /Applications/Google\ Chrome.app
- name: Install Poetry
uses: gi0baro/setup-poetry-bin@v1
- name: Install test dependencies
run: make install

- name: Test the playbook
run: ansible-playbook tests/test.yml --ask-become -vvv
run: poetry ansible-playbook tests/test.yml --ask-become -vvv
env:
ANSIBLE_FORCE_COLOR: '1'
ANSIBLE_STDOUT_CALLBACK: 'unixy'

- name: Idempotence check
run: |
idempotence=$(mktemp)
ansible-playbook tests/test.yml --ask-become | tee -a ${idempotence}
poetry ansible-playbook tests/test.yml --ask-become | tee -a ${idempotence}
tail ${idempotence} \
| grep -q 'changed=0.*failed=0' \
&& (echo 'Idempotence test: pass' && exit 0) \
Expand Down

0 comments on commit 895f0fa

Please sign in to comment.