feat: upgrade molecule to v5
This commit is contained in:
parent
8eb3096a5e
commit
7c53a18c21
20
.github/workflows/molecule.yml
vendored
20
.github/workflows/molecule.yml
vendored
@ -38,11 +38,10 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "${{ github.repository }}"
|
path: "${{ github.repository }}"
|
||||||
- name: molecule
|
- name: Run ansible lint
|
||||||
uses: robertdebock/molecule-action@4.0.9
|
uses: ansible/ansible-lint-action@main
|
||||||
with:
|
with:
|
||||||
command: lint
|
path: "."
|
||||||
scenario: ${{ fromJson(needs.setup.outputs.scenarios)[0] }}
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Scenario "${{ matrix.scenario }}" on ${{ matrix.config.image }}:${{ matrix.config.tag }}
|
name: Scenario "${{ matrix.scenario }}" on ${{ matrix.config.image }}:${{ matrix.config.tag }}
|
||||||
@ -60,23 +59,26 @@ jobs:
|
|||||||
- name: "redhat"
|
- name: "redhat"
|
||||||
image: "registry.access.redhat.com/ubi8/ubi"
|
image: "registry.access.redhat.com/ubi8/ubi"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
|
- image: "debian"
|
||||||
|
tag: "12"
|
||||||
- image: "debian"
|
- image: "debian"
|
||||||
tag: "11"
|
tag: "11"
|
||||||
- image: "debian"
|
- image: "debian"
|
||||||
tag: "10"
|
tag: "10"
|
||||||
- image: "ubuntu"
|
- image: "ubuntu"
|
||||||
tag: "22.04"
|
tag: "22.04"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "${{ github.repository }}"
|
path: "${{ github.repository }}"
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@4.0.9
|
uses: gofrolist/molecule-action@v2
|
||||||
with:
|
with:
|
||||||
|
# molecule_options: --debug
|
||||||
|
molecule_command: test
|
||||||
|
molecule_args: --scenario-name ${{ matrix.scenario }} -d docker
|
||||||
|
molecule_working_dir: "${{ github.repository }}"
|
||||||
|
env:
|
||||||
image: ${{ matrix.config.image }}
|
image: ${{ matrix.config.image }}
|
||||||
tag: ${{ matrix.config.tag }}
|
tag: ${{ matrix.config.tag }}
|
||||||
scenario: ${{ matrix.scenario }}
|
|
||||||
env:
|
|
||||||
name: ${{ matrix.config.name }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user