diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..6aa8dd1 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: + - macos-latest + - macos-14 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Run RUNME.sh + run: ./RUNME.sh diff --git a/RUNME.sh b/RUNME.sh index d2ab484..e716a72 100755 --- a/RUNME.sh +++ b/RUNME.sh @@ -1,9 +1,11 @@ #! /bin/sh -export PATH="$(python3 -c 'import os,sysconfig;print(sysconfig.get_path("scripts",f"{os.name}_user"))'):$PATH" +PYTHON_PATH=$(python3 -c 'import os,sysconfig;print(sysconfig.get_path("scripts",f"{os.name}_user"))') +PATH="$PYTHON_PATH:$PATH" +export PATH -python3 -m pip install --upgrade --user pip -python3 -m pip install --user ansible-core +python3 -m pip install --quiet --upgrade --user pip +python3 -m pip install --quiet --user ansible-core ansible-galaxy install -r requirements.yml ansible-playbook playbook.yaml