ansible_role_restic/.github/workflows/test.yml
dependabot[bot] 350cb5e9df
Bump github/super-linter from 4.0.2 to 4.1.0
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.0.2 to 4.1.0.
- [Release notes](https://github.com/github/super-linter/releases)
- [Commits](https://github.com/github/super-linter/compare/v4.0.2...v4.1.0)

---
updated-dependencies:
- dependency-name: github/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-04 07:27:02 +00:00

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@v2.3.4
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.1.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@v2.3.4
with:
path: "${{ github.repository }}"
- name: molecule
uses: robertdebock/molecule-action@2.6.16
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
with:
image: ubuntu