From acb0ddf27f75d39ec251fb98a066bbcdf7870f13 Mon Sep 17 00:00:00 2001 From: "Mark J. Horninger" Date: Thu, 15 Feb 2024 09:45:41 -0500 Subject: [PATCH] Added sanity tests --- .github/CODE_OF_CONDUCT.md | 0 .github/CONTRIBUTING.md | 0 .../workflows/run-ansible-sanity-tests.yml | 26 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 .github/CODE_OF_CONDUCT.md create mode 100644 .github/CONTRIBUTING.md create mode 100644 .github/workflows/run-ansible-sanity-tests.yml diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..e69de29 diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/run-ansible-sanity-tests.yml b/.github/workflows/run-ansible-sanity-tests.yml new file mode 100644 index 0000000..db9374d --- /dev/null +++ b/.github/workflows/run-ansible-sanity-tests.yml @@ -0,0 +1,26 @@ +name: Run Ansible Sanity Tests +on: + push: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + path: ansible_collections/dominion_solutions/netbird + + - name: Install dependencies + run: | + cd ansible_collections/dominion_solutions/netbird + pip install -r requirements.txt + + - name: Run Ansible Sanity Tests + run: | + cd ansible_collections/dominion_solutions/netbird + ansible-test sanity