Commit 2465f3d2 authored by dmitriysafronov's avatar dmitriysafronov
Browse files

ci: update from template

parent d9a6c166
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -6,12 +6,6 @@

version: 2
updates:
  - package-ecosystem: "pip"
    directory: "/.requirements"
    schedule:
      interval: "weekly"
    labels:
      - "dependencies"
  - package-ecosystem: "github-actions"
    directory: "/.github/workflows"
    schedule:
+14 −3
Original line number Diff line number Diff line
@@ -21,11 +21,21 @@ jobs:
    name: lint
    runs-on: ubuntu-latest

    continue-on-error: ${{ matrix.experimental }}
    strategy:
      max-parallel: 2
      fail-fast: true
      matrix:
        ansible: ["9", "11"]
        python: ["3.10", "3.12"]
        python: ["3.10", "3.x"]
        ansible: ["9", "latest"]
        experimental: [false]
        include:
          - python: "3.x"
            ansible: "9"
            experimental: true
        exclude:
          - python: "3.x"
            ansible: "9"
            experimental: false

    steps:
      - name: Check out the codebase
@@ -42,6 +52,7 @@ jobs:
        run: pip install --upgrade pip wheel

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

      - name: Run ansible-lint

.requirements/11.txt

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
# Requirements for ansible 11
ansible >=11, <12
ansible-lint
+3 −0
Original line number Diff line number Diff line
# Requirements for ansible latest
ansible
ansible-lint
+4 −0
Original line number Diff line number Diff line
@@ -5,6 +5,10 @@ git \
  https://github.com/dmitriysafronov/ansible_role-template.git \
  .update

LATEST_TAG="$(git -C .update tag | grep -e '^v' | sort -V | tail -n 1)"

git -C .update -c advice.detachedHead=false checkout ${LATEST_TAG}

if [[ -s .update/update.list ]]; then
  rsync -av \
    --include-from=.update/update.list \