Windows Ansible Role Test #136
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: Windows Ansible Role Test | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 5 * * 2' # At 5AM on Tuesdays | |
jobs: | |
integration: | |
name: Integration | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- windows-latest | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v2 | |
- name: Setup WinRM. | |
run: | | |
./test/windows/test.ps1 | |
- name: Setup WSL. | |
uses: Vampire/setup-wsl@v1.1.0 | |
with: | |
additional-packages: dos2unix python3 python3-pip | |
distribution: Ubuntu-20.04 | |
- name: Install dependencies. | |
shell: wsl-bash {0} | |
run: | | |
pip3 install ansible 'pywinrm[credssp]' | |
dos2unix test/windows/test.sh | |
- name: Test the role. | |
env: | |
ANSIBLE_FORCE_COLOR: '1' | |
shell: wsl-bash {0} | |
run: | | |
bash test/windows/test.sh |