From 0dfbc467931fb259c65fb0ae6c0fab56e4a2231c Mon Sep 17 00:00:00 2001 From: Denis Costa Date: Wed, 27 Dec 2023 16:05:17 -0300 Subject: [PATCH] Add action to run playbook on CI --- .github/workflows/running-on-mac.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/running-on-mac.yml diff --git a/.github/workflows/running-on-mac.yml b/.github/workflows/running-on-mac.yml new file mode 100644 index 0000000..7862fc0 --- /dev/null +++ b/.github/workflows/running-on-mac.yml @@ -0,0 +1,19 @@ +--- + name: CI + on: [push] # yamllint disable-line rule:truthy + # yamllint disable rule:indentation + jobs: + build: + runs-on: macos-13 + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Run playbook on MacOS + run: | + ansible-playbook \ + --connection=local \ + --extra-vars "current_user=$$USER home_folder=$$HOME" \ + -vv \ + -i inventory.ini \ + playbook.yml + # yamllint enable rule:indentation