mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 02:53:11 +00:00
29 lines
No EOL
673 B
YAML
29 lines
No EOL
673 B
YAML
---
|
|
name: Integration
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Check out the codebase
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python 3
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install Ansible
|
|
run: pip3 install ansible
|
|
|
|
- name: Install roles
|
|
run: ansible-galaxy install -r requirements.yml
|
|
|
|
- name: Run playbook
|
|
run: ansible-playbook -i tests/inventories/integration_testing/inventory nas.yml -b |