mirror of
https://github.com/roles-ansible/ansible_role_restic.git
synced 2024-12-11 23:41:32 +01:00
9ef6501d03
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
---
|
|
name: 🎭 Tests
|
|
# yamllint disable-line rule:truthy
|
|
on:
|
|
push:
|
|
paths:
|
|
- defaults/**
|
|
- handlers/**
|
|
- meta/**
|
|
- molecule/**
|
|
- tasks/**
|
|
- templates/**
|
|
- vars/**
|
|
- .github/**
|
|
pull_request:
|
|
branches:
|
|
- 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.0
|
|
env:
|
|
VALIDATE_ALL_CODEBASE: false
|
|
VALIDATE_ANSIBLE: true
|
|
ANSIBLE_DIRECTORY: './'
|
|
DEFAULT_BRANCH: main
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
molecule:
|
|
name: 🧪 Molecule test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
distro:
|
|
- centos7
|
|
- centos6
|
|
- ubuntu1804
|
|
- debian9
|
|
- debian10
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: "${{ github.repository }}"
|
|
- name: molecule
|
|
uses: robertdebock/molecule-action@4.0.7
|
|
env:
|
|
MOLECULE_DISTRO: ${{ matrix.distro }}
|
|
with:
|
|
image: ubuntu
|