From 3e96c6fd972546ab60ab8ee367dc73c6842b80dc Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Thu, 9 May 2024 11:44:10 +0200 Subject: [PATCH] test: add forgejo workflow --- .forgejo/workflows/molecule.yml | 18 ++++++++++++++++++ .yamllint | 4 ++-- README.md | 3 ++- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .forgejo/workflows/molecule.yml diff --git a/.forgejo/workflows/molecule.yml b/.forgejo/workflows/molecule.yml new file mode 100644 index 0000000..59dc096 --- /dev/null +++ b/.forgejo/workflows/molecule.yml @@ -0,0 +1,18 @@ +--- +on: [push] +jobs: + lint: + runs-on: docker + container: + image: code.waks.be/nishiki/molecule:docker + steps: + - uses: actions/checkout@v3 + - run: ansible-lint . + - run: yamllint . + molecule: + runs-on: docker + container: + image: code.waks.be/nishiki/molecule:docker + steps: + - uses: actions/checkout@v3 + - run: molecule test diff --git a/.yamllint b/.yamllint index 5465b58..2f9af0a 100644 --- a/.yamllint +++ b/.yamllint @@ -2,11 +2,11 @@ extends: default ignore: | - .kitchen/* + .kitchen* vendor/ + .forgejo/ rules: line-length: max: 120 level: warning - truthy: false diff --git a/README.md b/README.md index 14d836d..2113538 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # Ansible role: Haproxy [![Version](https://img.shields.io/badge/latest_version-1.1.0-green.svg)](https://code.waks.be/nishiki/ansible-role-haproxy/releases) -[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-haproxy/src/branch/master/LICENSE) +[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-haproxy/src/branch/main/LICENSE) +[![Build](https://code.waks.be/nishiki/ansible-role-haproxy/actions/workflows/molecule.yml/badge.svg?branch=main)](https://code.waks.be/nishiki/ansible-role-haproxy/actions?workflow=molecule.yml) Install and configure haproxy