diff --git a/.ansible-lint b/.ansible-lint index fa67b68..f179ac0 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -13,8 +13,5 @@ exclude_paths: - .github - requirements.yml -skip_list: - - yaml[truthy] - enable_list: - name[prefix] diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..b1578c0 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,11 @@ +--- +name: Pull request +about: Describe the proposed change + +--- + +**Describe the change** +A clear and concise description of what the pull request is. + +**Testing** +In case a feature was added, how were tests performed? diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index 27bd3c1..b664c64 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -12,7 +12,6 @@ on: - main - testing - dependabot/** - # - renovate/** paths-ignore: - '**/README.md' - '**/CHANGELOG.md' @@ -21,8 +20,7 @@ on: pull_request: pull_request_target: schedule: - # - cron: '9 5 5 * *' - - cron: '9 5 * * *' + - cron: '9 5 5 * *' workflow_dispatch: @@ -32,6 +30,7 @@ concurrency: group: ${{ github.ref }}-${{ github.workflow }} cancel-in-progress: true + jobs: lint: runs-on: ubuntu-20.04 @@ -41,7 +40,9 @@ jobs: - name: ansible-lint uses: ansible-community/ansible-lint-action@main test: - runs-on: ubuntu-22.04 + needs: + - lint + runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: @@ -51,18 +52,24 @@ jobs: - image: "enterpriselinux" tag: "8" steps: - - name: Checkout Role + - name: checkout uses: actions/checkout@v4 + + - name: Set up Python 3. + uses: actions/setup-python@v5 with: - path: "${{ github.repository }}" - - name: Running Molecule Test - uses: buluma/molecule-action@v24.6.17 - with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: molecule + run: molecule converge + env: image: ${{ matrix.config.image }} tag: ${{ matrix.config.tag }} - - name: Running Role Test - run: ansible-galaxy role import --api-key ${{ secrets.galaxy_api_key }} buluma ${{ github.event.repository.name }} - dependabot: needs: - lint diff --git a/requirements.txt b/requirements.txt index d24d40e..5250f77 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -ansible-compat == 4.* +ansible-compat == 24.* molecule == 24.* molecule-plugins[docker] == 23.* ansible-lint == 24.* paramiko == 3.* # Pinning requests version due to [bug](https://github.com/docker/docker-py/issues/3113) -requests == 2.28.1 +# requests == 2.28.1