-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update README update github workflows update molecule tests
- Loading branch information
Showing
36 changed files
with
713 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
--- | ||
|
||
skip_list: | ||
- role-name | ||
- name[casing] | ||
- name[template] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
|
||
name: push to ansible galaxy | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: | ||
- "CI" | ||
branches: | ||
- main | ||
types: | ||
- completed | ||
|
||
jobs: | ||
galaxy: | ||
name: galaxy | ||
runs-on: ubuntu-20.04 | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- name: Check out the codebase | ||
uses: actions/checkout@v3 | ||
with: | ||
path: 'ansible-users' | ||
|
||
- name: galaxy | ||
uses: robertdebock/galaxy-action@1.2.1 | ||
with: | ||
galaxy_api_key: ${{ secrets.galaxy_api_key }} | ||
git_branch: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
|
||
name: code linter | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- testing | ||
|
||
jobs: | ||
lint: | ||
name: linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛎 Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: lint | ||
uses: docker://ghcr.io/github/super-linter:slim-v4 | ||
env: | ||
DEFAULT_BRANCH: main | ||
GITHUB_TOKEN: ${{ secrets.GH_REGISTRY_TOKEN }} | ||
VALIDATE_ALL_CODEBASE: true | ||
VALIDATE_ANSIBLE: true | ||
# VALIDATE_MARKDOWN: true | ||
VALIDATE_YAML: true | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
name: create users | ||
|
||
on: | ||
schedule: | ||
- cron: "0 4 * * 0" | ||
workflow_dispatch: | ||
workflow_run: | ||
workflows: | ||
- "code linter" | ||
branches: | ||
- main | ||
- feature/* | ||
- fix/* | ||
types: | ||
- completed | ||
|
||
defaults: | ||
run: | ||
working-directory: 'ansible-users' | ||
|
||
jobs: | ||
|
||
deb: | ||
name: "${{ matrix.image }} / ansible: ${{ matrix.ansible-version }}" | ||
runs-on: ubuntu-20.04 | ||
if: ${{ github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- debian:11 | ||
ansible-version: | ||
- '6.1' | ||
|
||
steps: | ||
- name: check out the codebase. | ||
uses: actions/checkout@v3 | ||
with: | ||
path: 'ansible-users' | ||
|
||
- name: 🐍 set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r test-requirements.txt | ||
- name: test default | ||
run: | | ||
tox -e ansible_$(printf "${{ matrix.ansible-version }}") \ | ||
-- molecule test --scenario-name configured | ||
env: | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
DISTRIBUTION: ${{ matrix.image }} |
Oops, something went wrong.