Skip to content

Commit

Permalink
chore: break up CI suite testing for faster runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
artis3n committed Dec 26, 2021
1 parent 2fb6822 commit 576b070
Showing 1 changed file with 66 additions and 1 deletion.
67 changes: 66 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,75 @@ jobs:
run: make lint

- name: Molecule
run: pipenv run molecule test --all
run: pipenv run molecule test --scenario-name default
env:
MOLECULE_DISTRO: "${{ matrix.distros }}"
TAILSCALE_CI_KEY: "${{ secrets.TAILSCALE_CI_KEY }}"
# https://www.jeffgeerling.com/blog/2020/getting-colorized-output-molecule-and-ansible-on-github-actions-ci
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'

molecule-skip-auth:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.x
id: setup-python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
- name: Use Cache
uses: actions/[email protected]
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}

- name: Install packages
run: pipenv install --dev

- name: Molecule - Skip Authentication
run: pipenv run molecule test --scenario-name skip-authentication
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'

molecule-vars-priority:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.x
id: setup-python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
- name: Use Cache
uses: actions/[email protected]
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}

- name: Install packages
run: pipenv install --dev

- name: Molecule - Vars Priority Validation
run: pipenv run molecule test --scenario-name vars-priority
env:
TAILSCALE_CI_KEY: "${{ secrets.TAILSCALE_CI_KEY }}"
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'

0 comments on commit 576b070

Please sign in to comment.