Skip to content

Windows Ansible Role Test #136

Windows Ansible Role Test

Windows Ansible Role Test #136

Workflow file for this run

---
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