From bb0f6c1f1e9d280f6ee5e112417efd65e8903ed8 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Thu, 9 May 2024 11:04:04 +0200 Subject: [PATCH] test: add forgejo workflow --- .forgejo/workflows/molecule.yml | 18 ++++++++++++++++++ .yamllint | 1 + README.md | 1 + 3 files changed, 20 insertions(+) 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 72ac1d6..152f1ff 100644 --- a/.yamllint +++ b/.yamllint @@ -4,6 +4,7 @@ extends: default ignore: | .kitchen/* vendor/ + .forgejo/ rules: line-length: diff --git a/README.md b/README.md index 1bf0cf0..4fb290c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Version](https://img.shields.io/badge/latest_version-2.2.0-green.svg)](https://code.waks.be/nishiki/ansible-role-certbot/releases) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-certbot/src/branch/main/LICENSE) +[![Build](https://code.waks.be/nishiki/ansible-role-certbot/actions/workflows/molecule.yml/badge.svg?branch=main)](https://code.waks.be/nishiki/ansible-role-certbot/actions?workflow=molecule.yml) Generate certificate SSL with certbot.