ansible-nas/.github/workflows/integration.yml

29 lines
673 B
YAML
Raw Normal View History

2021-02-21 19:50:07 +00:00
---
2021-02-18 23:14:00 +00:00
name: Integration
2021-02-18 23:11:19 +00:00
2021-02-21 19:50:07 +00:00
# Controls when the action will run.
2021-02-18 23:11:19 +00:00
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
2021-02-18 23:28:28 +00:00
- name: Install roles
run: ansible-galaxy install -r requirements.yml
2021-02-18 23:11:19 +00:00
- name: Run playbook
2021-02-18 23:47:53 +00:00
run: ansible-playbook -i tests/inventories/integration_testing/inventory nas.yml -b