forked from scylladb/scylla-ansible-roles
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.04 KB
/
ansible-scylla-monitoring.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
name: Molecule Test for ansible-scylla-monitoring role
on:
push:
paths:
- 'ansible-scylla-monitoring/**'
pull_request:
paths:
- 'ansible-scylla-monitoring/**'
branches:
- master
jobs:
build:
runs-on: self-hosted
strategy:
fail-fast: false
max-parallel: 4
matrix:
molecule_distro:
- ubuntu2004
defaults:
run:
working-directory: ansible-scylla-monitoring
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip pip-tools
pip-sync requirements.txt requirements-dev.txt
ansible --version
molecule --version
- name: Test with molecule
run: |
molecule destroy --scenario-name ${{ matrix.molecule_distro }} && molecule test --scenario-name ${{ matrix.molecule_distro }}