Skip to content

Commit

Permalink
Merge pull request #1 from stdevel/feat-client-role
Browse files Browse the repository at this point in the history
Convert to collection and add additional features
  • Loading branch information
stdevel authored Mar 28, 2024
2 parents b395a3d + 94b9f8f commit 0a775ce
Show file tree
Hide file tree
Showing 62 changed files with 2,854 additions and 372 deletions.
4 changes: 4 additions & 0 deletions .config/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
skip_list:
- '303'
- experimental
121 changes: 121 additions & 0 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: CI
on:
# Run CI against all pushes (direct commits, also merged PRs), Pull Requests
push:
pull_request:
# Run CI once per day (at 06:00 UTC)
# This ensures that even if there haven't been commits that we are still testing against latest version of ansible-test for each ansible-base version
schedule:
- cron: '0 6 * * *'
env:
NAMESPACE: stdevel
COLLECTION_NAME: landscape

jobs:
sanity:
name: Sanity (Ⓐ${{ matrix.ansible }})
strategy:
matrix:
ansible:
- stable-2.10
- stable-2.11
- stable-2.12
- stable-2.13
- stable-2.14
python:
- '3.8'
- '3.9'
runs-on: >-
${{ contains(fromJson(
'["stable-2.9", "stable-2.10", "stable-2.11", "stable-2.12", "stable-2.13", "stable-2.14"]'
), matrix.ansible) && 'ubuntu-22.04' || 'ubuntu-latest' }}
steps:

- name: Check out code
uses: actions/checkout@v2

- name: Perform sanity testing with ansible-test
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: ${{ matrix.ansible }}
target-python-version: ${{ matrix.python }}
testing-type: sanity


# units:
# runs-on: >-
# ${{ contains(fromJson(
# '["stable-2.10", "stable-2.11", "stable-2.12", "stable-2.13", "stable-2.14"]'
# ), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }}
# name: Units (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }})
# strategy:
# # As soon as the first unit test fails, cancel the others to free up the CI queue
# fail-fast: true
# matrix:
# ansible:
# - stable-2.10
# - stable-2.11
# - stable-2.12
# - stable-2.13
# - stable-2.14
# - devel

# steps:
# - name: Check out code
# uses: actions/checkout@v2

# - name: Perform unit testing with ansible-test
# uses: ansible-community/ansible-test-gh-action@release/v1
# with:
# ansible-core-version: ${{ matrix.ansible }}
# testing-type: units
# test-deps: >-
# ansible.netcommon
# ansible.utils


# integration:
# runs-on: ubuntu-latest
# name: I (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }})
# strategy:
# fail-fast: false
# matrix:
# ansible:
# - stable-2.9 # Only if your collection supports Ansible 2.9
# - stable-2.10
# - stable-2.11
# - stable-2.12
# - stable-2.13
# - devel
# python:
# - 2.6
# - 2.7
# - 3.5
# - 3.6
# - 3.7
# - 3.8
# - 3.9
# exclude:
# # Because ansible-test doesn't support python3.9 for Ansible 2.9
# - ansible: stable-2.9
# python: 3.9
# - ansible: devel
# python: 2.6

# steps:
# - name: Check out code
# uses: actions/checkout@v2

# - name: Perform integration testing with ansible-test
# uses: ansible-community/ansible-test-gh-action@release/v1
# with:
# ansible-core-version: ${{ matrix.ansible }}
# python-version: 3.8
# pre-test-cmd: >-
# mkdir -p tests/output/
# touch tests/output/coverage
# target-python-version: ${{ matrix.python }}
# testing-type: integration
# test-deps: >-
# ansible.netcommon
# ansible.utils
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.pyc
*.pem
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

Loading

0 comments on commit 0a775ce

Please sign in to comment.