mirror of
https://github.com/jimeh/ansible-adguardhome.git
synced 2026-02-19 07:06:38 +00:00
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -22,8 +22,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get install -y docker
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install -r requirements.txt
|
||||
- name: Test with molecule
|
||||
run: |
|
||||
molecule test -s ${{ matrix.scenario }}
|
||||
|
||||
24
Makefile
Normal file
24
Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
test: bootstrap
|
||||
molecule test --all
|
||||
|
||||
test-%: bootstrap
|
||||
molecule test -s "$*"
|
||||
|
||||
lint: bootstrap
|
||||
molecule lint
|
||||
|
||||
bootstrap:
|
||||
$(eval PIP := $(shell which pip))
|
||||
$(if $(PIP),,$(eval PIP := $(shell which pip3)))
|
||||
$(if $(PIP),,$(error No pip or pip3 found in PATH))
|
||||
|
||||
$(PIP) install -r requirements.txt
|
||||
|
||||
new-version:
|
||||
$(if $(shell which npx),,\
|
||||
$(error No npx not found in PATH, please install NodeJS))
|
||||
$(if $(shell which standardx-version),,\
|
||||
$(error No standard-version not found in PATH, install with: \
|
||||
npm install -g standard-version))
|
||||
|
||||
npx standard-version --tag-prefix=''
|
||||
@@ -3,8 +3,11 @@ dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
lint:
|
||||
name: yamllint
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint
|
||||
flake8
|
||||
platforms:
|
||||
- name: centos-7
|
||||
image: centos:7
|
||||
|
||||
@@ -3,8 +3,11 @@ dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
lint:
|
||||
name: yamllint
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint
|
||||
flake8
|
||||
platforms:
|
||||
- name: centos-7
|
||||
image: centos:7
|
||||
|
||||
@@ -3,8 +3,11 @@ dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: docker
|
||||
lint:
|
||||
name: yamllint
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint
|
||||
flake8
|
||||
platforms:
|
||||
- name: centos-7
|
||||
image: centos:7
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
ansible
|
||||
ansible-lint
|
||||
flake8
|
||||
molecule[docker]
|
||||
yamllint
|
||||
molecule[docker,lint]
|
||||
pytest
|
||||
testinfra
|
||||
|
||||
Reference in New Issue
Block a user