ansible_role_restic/.github/workflows/test.yml

60 lines
1.3 KiB
YAML
Raw Normal View History

---
name: 🎭 Tests
2021-03-23 16:35:44 +01:00
# yamllint disable-line rule:truthy
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
jobs:
lint:
name: 📝 Linting
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v4.9.4
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_ANSIBLE: true
ANSIBLE_DIRECTORY: './'
2021-04-29 16:55:51 +02:00
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
molecule:
name: 🧪 Molecule test
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- ubuntu1804
2022-09-13 19:21:20 +02:00
- ubuntu2004
- ubuntu2204
- debian9
- debian10
2022-09-13 19:21:20 +02:00
- debian11
steps:
- name: checkout
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: molecule
uses: robertdebock/molecule-action@4.0.8
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
with:
image: ubuntu