Unverified Commit fa7a710c authored by Dmitriy Safronov's avatar Dmitriy Safronov Committed by GitHub
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

.ansible-lint

0 → 100644
+3 −0
Original line number Diff line number Diff line
---
warn_list:
  - yaml[line-length]

.github/dependabot.yml

0 → 100644
+13 −0
Original line number Diff line number Diff line
---

# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
  - package-ecosystem: "pip"      # See documentation for possible values
    directory: "/.requirements"   # Location of package manifests
    schedule:
      interval: "weekly"
+47 −0
Original line number Diff line number Diff line
---

name: Lint

"on":
  pull_request:
    branches:
      - master
  schedule:
    # Run on the 10th of each month at noon.
    - cron: "00 12 10 * *"
  workflow_dispatch:

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

jobs:

  test:
    name: lint
    runs-on: ubuntu-latest

    strategy:
      max-parallel: 2
      matrix:
        ansible: ["2.16", "latest"]

    steps:
      - name: Check out the codebase
        uses: actions/checkout@v3

      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: "3.10"
          cache: "pip"
          cache-dependency-path: .requirements/${{ matrix.ansible }}.txt

      - name: Install/upgrade pip, wheel
        run: pip install --upgrade pip wheel

      - name: Install test dependencies
        run: pip install -r .requirements/${{ matrix.ansible }}.txt

      - name: Run ansible-lint
        run: ansible-lint

.requirements/2.16.txt

0 → 100644
+3 −0
Original line number Diff line number Diff line
# Requirements for ansible stable
ansible>=2.16<2.17
ansible-lint
+3 −0
Original line number Diff line number Diff line
# Requirements for ansible latest
ansible
ansible-lint