From 7c53a18c212bd7bb7c5db256293c703ff6f28d0a Mon Sep 17 00:00:00 2001 From: Bechir Delibes BKWEDOU-NGAMENI Date: Mon, 7 Aug 2023 12:26:04 +0200 Subject: [PATCH] feat: upgrade molecule to v5 --- .github/workflows/molecule.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index dd02ce5..1c72f8b 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -38,11 +38,10 @@ jobs: uses: actions/checkout@v3 with: path: "${{ github.repository }}" - - name: molecule - uses: robertdebock/molecule-action@4.0.9 + - name: Run ansible lint + uses: ansible/ansible-lint-action@main with: - command: lint - scenario: ${{ fromJson(needs.setup.outputs.scenarios)[0] }} + path: "." test: name: Scenario "${{ matrix.scenario }}" on ${{ matrix.config.image }}:${{ matrix.config.tag }} @@ -60,23 +59,26 @@ jobs: - name: "redhat" image: "registry.access.redhat.com/ubi8/ubi" tag: "latest" + - image: "debian" + tag: "12" - image: "debian" tag: "11" - image: "debian" tag: "10" - image: "ubuntu" tag: "22.04" - steps: - name: checkout uses: actions/checkout@v3 with: path: "${{ github.repository }}" - name: molecule - uses: robertdebock/molecule-action@4.0.9 + uses: gofrolist/molecule-action@v2 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 }} tag: ${{ matrix.config.tag }} - scenario: ${{ matrix.scenario }} - env: - name: ${{ matrix.config.name }}