From cfc29853a8b5c3e0ed28cf5a41a4a8d988293612 Mon Sep 17 00:00:00 2001 From: alexanderbazhenoff Date: Tue, 2 Apr 2024 23:04:37 +0300 Subject: [PATCH] fixes --- .../workflows/ansible_molecule_teststing.yml | 35 +++++++++++++++++++ .github/workflows/ansible_sanity_testing.yml | 2 ++ README.md | 4 +-- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ansible_molecule_teststing.yml diff --git a/.github/workflows/ansible_molecule_teststing.yml b/.github/workflows/ansible_molecule_teststing.yml new file mode 100644 index 0000000..f6fb819 --- /dev/null +++ b/.github/workflows/ansible_molecule_teststing.yml @@ -0,0 +1,35 @@ +--- +name: Molecule Testsing +on: # yamllint disable-line rule:truthy + push: null + pull_request: + branches: + - main + - master +permissions: read-all + +jobs: + test: + needs: + - lint + runs-on: ubuntu-20.04 + permissions: + statuses: write + strategy: + matrix: + image: + - alpine + - debian + - oracle + - ubuntu + steps: + - name: checkout + uses: actions/checkout@v3 + with: + path: "${{ github.repository }}" + - name: molecule + uses: robertdebock/molecule-action@6.0.0 + with: + image: "${{ matrix.image }}" + options: parallel + scenario: my_specific_scenario diff --git a/.github/workflows/ansible_sanity_testing.yml b/.github/workflows/ansible_sanity_testing.yml index 7e848bc..a23bdf7 100644 --- a/.github/workflows/ansible_sanity_testing.yml +++ b/.github/workflows/ansible_sanity_testing.yml @@ -22,6 +22,8 @@ jobs: # https://docs.ansible.com/ansible/latest/dev_guide/testing_sanity.html sanity: name: Sanity (Ⓐ${{ matrix.ansible }}) + permissions: + statuses: write strategy: matrix: ansible: diff --git a/README.md b/README.md index 39d024b..2539f94 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ [![MegaLinter](https://github.com/alexanderbazhenoff/ansible-collection-linux/actions/workflows/mega_linter.yml/badge.svg?branch=1_1_10)](https://megalinter.io/) -[![Sanity Testing](https://github.com/alexanderbazhenoff/ansible-collection-linux/actions/workflows/ansible_sanity_testsing.yml/badge.svg?branch=1_1_10)](https://docs.ansible.com/ansible/latest/dev_guide/testing_sanity.html) -[![Ansible Molecule Testsing](https://github.com/alexanderbazhenoff/ansible-collection-linux/actions/workflows/ansible-molecule-teststing.yml/badge.svg?branch=main)](https://docs.ansible.com/ansible/latest/dev_guide/testing_sanity.html) +[![Sanity Testing](https://github.com/alexanderbazhenoff/ansible-collection-linux/actions/workflows/ansible_sanity_testing.yml/badge.svg?branch=1_1_10)](https://docs.ansible.com/ansible/latest/dev_guide/testing_sanity.html) +[![Molecule Testsing](https://github.com/alexanderbazhenoff/ansible-collection-linux/actions/workflows/ansible_molecule_teststing.yml/badge.svg?branch=1_1_10)](https://docs.ansible.com/ansible/latest/dev_guide/testing_sanity.html) [![Wiki](https://github.com/alexanderbazhenoff/ansible-collection-linux/actions/workflows/wiki.yml/badge.svg?branch=main)](https://github.com/alexanderbazhenoff/ansible-collection-linux/wiki) [![Ansible Galaxy](https://github.com/alexanderbazhenoff/ansible-collection-linux/actions/workflows/ansible-galaxy-ci.yml/badge.svg?branch=main)](https://galaxy.ansible.com/ui/repo/published/alexanderbazhenoff/linux/) [![GitHub Release](https://img.shields.io/github/v/release/alexanderbazhenoff/ansible-collection-linux)](https://github.com/alexanderbazhenoff/ansible-collection-linux/releases)