37 lines
732 B
YAML
37 lines
732 B
YAML
---
|
|
|
|
name: Molecule
|
|
|
|
'on':
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
scenario:
|
|
- debian-10
|
|
- debian-11
|
|
- debian-12
|
|
- ubuntu-18.04
|
|
- ubuntu-20.04
|
|
- ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: "${{ github.repository }}"
|
|
|
|
- name: Molecule
|
|
uses: gofrolist/molecule-action@v2.3.19
|
|
with:
|
|
molecule_options: --base-config molecule/_shared/base.yml
|
|
molecule_args: --scenario-name ${{ matrix.scenario }}
|
|
molecule_working_dir: "HanXHX/ansible-nginx"
|