docker #14
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": | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
work: | |
name: work | |
runs-on: macos-12 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Install Ansible | |
run: brew install ansible | |
- name: Install requirements | |
run: ansible-galaxy install -r requirements.yml | |
- name: Test the playbook | |
# Skip some tasks that depend on manual steps | |
run: ansible-playbook pb-work.yml --skip-tags no-ci -i inventory-ci.ini | |
nitecloud: | |
name: nitecloud | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Install Ansible | |
run: ./install-ansible.sh | |
- name: Install requirements | |
run: ansible-galaxy install -r requirements.yml | |
- name: Test the playbook | |
run: ansible-playbook pb-nitecloud.yml -i inventory-ci.ini |