From f1ea603232ea91d1cd0053ea3f4ae6045c5142ab Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Wed, 5 Jun 2024 20:37:11 +0200 Subject: [PATCH] ci: rl9 test --- .github/workflows/ci.yml | 31 ++++++++++++++++--------------- .yamllint | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 15 deletions(-) create mode 100644 .yamllint diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a46025..be40b5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,20 +1,21 @@ name: molecule test on: - pull_request: - branches: - - main - types: [opened, synchronize, reopened] - paths: - - 'defaults/**' - - 'handlers/**' - - 'molecule/**' - - 'tasks/**' - - 'templates/**' - - 'vars/**' - schedule: - - cron: '0 1 1 * *' - workflow_dispatch: + push: + # pull_request: + # branches: + # - main + # types: [opened, synchronize, reopened] + # paths: + # - 'defaults/**' + # - 'handlers/**' + # - 'molecule/**' + # - 'tasks/**' + # - 'templates/**' + # - 'vars/**' + # schedule: + # - cron: '0 1 1 * *' + # workflow_dispatch: jobs: standalone: @@ -24,7 +25,7 @@ jobs: fail-fast: ${{ !contains(github.event_name, 'pull_request') }} matrix: config: - - image: "rockylinux8" + - image: "rockylinux9" cgroup_mode: "host" volumes: "rw" - image: "ubuntu2204" diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..8827676 --- /dev/null +++ b/.yamllint @@ -0,0 +1,33 @@ +--- +# Based on ansible-lint config +extends: default + +rules: + braces: + max-spaces-inside: 1 + level: error + brackets: + max-spaces-inside: 1 + level: error + colons: + max-spaces-after: -1 + level: error + commas: + max-spaces-after: -1 + level: error + comments: disable + comments-indentation: disable + document-start: disable + empty-lines: + max: 3 + level: error + hyphens: + level: error + indentation: disable + key-duplicates: enable + line-length: disable + new-line-at-end-of-file: disable + new-lines: + type: unix + trailing-spaces: disable + truthy: disable