Skip to content

Commit

Permalink
Use makefile for molecule tests
Browse files Browse the repository at this point in the history
Related PR: #305
  • Loading branch information
vitabaks committed May 2, 2023
1 parent 68c534e commit 061a9ee
Show file tree
Hide file tree
Showing 16 changed files with 113 additions and 112 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ jobs:
namespace: glillico

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/molecule_pgpro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,23 @@ jobs:
- ubuntu2204

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests for PostgresPro
run: molecule test --scenario-name postgrespro
run: make molecule-test-scenario
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
IMAGE_DISTRO: ${{ matrix.distro }}
MOLECULE_SCENARIO: 'postgrespro'

...
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_almalinux8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_almalinux9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_centos8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_centosstream8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_centosstream9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_debian10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_debian11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_oracle_linux8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_oracle_linux9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_rockylinux8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_rockylinux9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/schedule_pg_ubuntu1804.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.10'

- name: Install dependencies
run: pip3 install 'molecule[docker]<5.0.0' ansible
run: make bootstrap

- name: Run Molecule tests
run: molecule test
run: make molecule-test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down

0 comments on commit 061a9ee

Please sign in to comment.