From cd233f67e0ce6f0a8cd9dd0321b022ee56374545 Mon Sep 17 00:00:00 2001 From: Nikolaos Kakouros Date: Mon, 5 Dec 2022 22:45:18 +0000 Subject: [PATCH] wip --- .github/workflows/main.yml | 33 ++++++++++++++++++++++++++++++++- tasks/install.yml | 9 +++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78c68f2..0db99c3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ on: # yamllint disable-line rule:truthy workflow_dispatch: ~ jobs: - build: + build-linux: runs-on: ubuntu-latest env: @@ -59,3 +59,34 @@ jobs: CUSTOM_MOLECULE_CONTAINER_IMAGE: ${{ matrix.distro.image }} CUSTOM_MOLECULE_INSTANCE_NAME: ${{ env.role_name}}-${{ matrix.distro.instance_name }} CUSTOM_MOLECULE_DRIVER: ${{ env.driver }} + + build-mac: + runs-on: macos-12 + + env: + role_name: nkakouros.easyrsa + + steps: + - uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v2.2.1 + + - name: Install molecule + run: pip3 install ansible molecule ${{ env.driver }} flake8 + + - name: Get linter-config repo + uses: actions/checkout@v3 + with: + repository: nkakouros-original/linter-configs + path: linter-configs + + - name: Copy linter configs in place + run: >- + cp -r + ${{ github.workspace }}/linter-configs/configs/. + ${{ github.workspace }}/; + rm -rf linter-configs; + + - name: Run molecule + run: molecule -c molecule.yml -c molecule.delegated.yml test diff --git a/tasks/install.yml b/tasks/install.yml index b78a44e..63c099d 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -22,6 +22,15 @@ - openssl - git +- name: Install dependencies (MacOS) + community.general.homebrew: + name: "{{ packages }}" + when: ansible_os_family == 'Darwin' + vars: + packages: + - git + - openssl + - name: Download easy-rsa git: repo: "{{ easyrsa_repo }}"