Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nkakouros committed Dec 5, 2022
1 parent dafa756 commit cd233f6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch: ~

jobs:
build:
build-linux:
runs-on: ubuntu-latest

env:
Expand Down Expand Up @@ -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/[email protected]

- 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
9 changes: 9 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit cd233f6

Please sign in to comment.