2020-11-12 16:12:04 +01:00
|
|
|
---
|
|
|
|
name: 🎭 Tests
|
2021-03-23 16:35:44 +01:00
|
|
|
# yamllint disable-line rule:truthy
|
2020-11-12 16:12:04 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- defaults/**
|
|
|
|
- handlers/**
|
|
|
|
- meta/**
|
|
|
|
- molecule/**
|
|
|
|
- tasks/**
|
|
|
|
- templates/**
|
|
|
|
- vars/**
|
|
|
|
- .github/**
|
2020-11-12 22:04:08 +01:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-04-29 16:55:51 +02:00
|
|
|
- main
|
2020-11-12 16:12:04 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
name: 📝 Linting
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
2022-03-02 10:19:42 +01:00
|
|
|
uses: actions/checkout@v3
|
2020-11-12 16:12:04 +01:00
|
|
|
with:
|
|
|
|
# Full git history is needed to get a proper list of changed files within `super-linter`
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Lint Code Base
|
2022-04-04 11:12:15 +02:00
|
|
|
uses: github/super-linter@v4.9.2
|
2020-11-12 16:12:04 +01:00
|
|
|
env:
|
|
|
|
VALIDATE_ALL_CODEBASE: false
|
|
|
|
VALIDATE_ANSIBLE: true
|
|
|
|
ANSIBLE_DIRECTORY: './'
|
2021-04-29 16:55:51 +02:00
|
|
|
DEFAULT_BRANCH: main
|
2020-11-12 16:12:04 +01:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
molecule:
|
|
|
|
name: 🧪 Molecule test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
distro:
|
|
|
|
- centos7
|
|
|
|
- centos6
|
|
|
|
- ubuntu1804
|
|
|
|
- debian9
|
|
|
|
- debian10
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
2022-03-02 10:19:42 +01:00
|
|
|
uses: actions/checkout@v3
|
2020-11-12 16:12:04 +01:00
|
|
|
with:
|
|
|
|
path: "${{ github.repository }}"
|
|
|
|
- name: molecule
|
2022-02-11 11:07:05 +01:00
|
|
|
uses: robertdebock/molecule-action@4.0.7
|
2020-11-12 16:12:04 +01:00
|
|
|
env:
|
|
|
|
MOLECULE_DISTRO: ${{ matrix.distro }}
|
|
|
|
with:
|
|
|
|
image: ubuntu
|