2020-12-12 17:21:17 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
name: CI
|
|
|
|
'on':
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- main
|
|
|
|
- v1_release
|
|
|
|
schedule:
|
|
|
|
- cron: "0 1 1 * *"
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: "xanmanning.k3s"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
molecule:
|
|
|
|
name: Molecule
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-12-12 18:11:28 +01:00
|
|
|
include:
|
|
|
|
- distro: debian10
|
|
|
|
scenario: default
|
|
|
|
- distro: ubuntu2004
|
|
|
|
scenario: default
|
|
|
|
- distro: amazonlinux2
|
|
|
|
scenario: default
|
|
|
|
- distro: centos7
|
|
|
|
scenario: default
|
|
|
|
- distro: ubuntu1804
|
|
|
|
scenario: default
|
2021-06-22 21:28:23 +02:00
|
|
|
- distro: fedora33
|
2020-12-12 18:11:28 +01:00
|
|
|
scenario: nodeploy
|
2021-06-22 21:28:23 +02:00
|
|
|
- distro: fedora32
|
2020-12-12 18:11:28 +01:00
|
|
|
scenario: highavailabilitydb
|
2021-06-22 21:28:23 +02:00
|
|
|
- distro: fedora31
|
2020-12-12 18:11:28 +01:00
|
|
|
scenario: autodeploy
|
2021-12-19 00:04:24 +01:00
|
|
|
- distro: debian11
|
2020-12-12 18:11:28 +01:00
|
|
|
scenario: highavailabilityetcd
|
2021-06-22 21:28:23 +02:00
|
|
|
- distro: rockylinux8
|
2020-12-12 18:11:28 +01:00
|
|
|
scenario: highavailabilityetcd
|
2020-12-12 17:21:17 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout codebase
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: "xanmanning.k3s"
|
|
|
|
|
|
|
|
- name: Set up Python 3
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: "3.x"
|
|
|
|
|
|
|
|
- name: Install test dependencies
|
|
|
|
run: pip3 install -r molecule/requirements.txt
|
|
|
|
|
|
|
|
- name: Run Molecule tests
|
|
|
|
run: molecule test --scenario-name "${{ matrix.scenario }}"
|
|
|
|
env:
|
|
|
|
PY_COLORS: '1'
|
|
|
|
ANSIBLE_FORCE_COLOR: '1'
|
|
|
|
MOLECULE_DISTRO: ${{ matrix.distro }}
|