Fixes in ci.yml #4
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: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: ansible-galaxy version | |
run: ansible-galaxy --version | |
- name: Test to build Ansible collection | |
run: ansible-galaxy collection build --force --ignore-certs | |
test: | |
runs-on: ubuntu-latest | |
needs: validate | |
steps: | |
- name: Ensure all shell script having the executable flag | |
run: chmod +x *.sh | |
working-directory: ./samples | |
- name: Prepare Ansible for testing | |
run: ./setup_ansible.sh | |
working-directory: ./samples |