-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Florian Goth
committed
Dec 31, 2023
1 parent
2b51572
commit 599b87f
Showing
1 changed file
with
44 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: Test deployment | ||
'on': | ||
pull_request: | ||
push: | ||
schedule: | ||
# Run every Wednesday at 01:42 | ||
- cron: "42 1 * * 3" | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out codebase | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: pip3 install yamllint | ||
- name: Lint repository | ||
run: yamllint . | ||
|
||
molecule: | ||
name: Molecule | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the codebase | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies - 1 | ||
run: pip3 install ansible molecule[docker] docker pytest testinfra | ||
- name: Install dependencies - 2 | ||
run: pip3 install molecule[docker] docker testinfra molecule-plugins | ||
- name: Run Molecule | ||
run: molecule test | ||
env: | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' |