mirror of
https://github.com/GeekOops/geekoops-pureftpd.git
synced 2024-05-19 22:12:23 +00:00
d5050318cd
Add GitHub Actions as CI.
43 lines
989 B
YAML
43 lines
989 B
YAML
---
|
|
name: Test deployment
|
|
'on':
|
|
pull_request:
|
|
push:
|
|
schedule:
|
|
# Run every Wednesday at 01:42
|
|
- cron: "42 1 * * 3"
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out codebase
|
|
uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Install dependencies
|
|
run: pip3 install yamllint
|
|
- name: Lint repository
|
|
run: yamllint .
|
|
|
|
molecule:
|
|
name: Molecule
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the codebase
|
|
uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Install dependencies
|
|
run: pip3 install ansible molecule[docker] docker pytest testinfra
|
|
- name: Run Molecule
|
|
run: molecule test
|
|
env:
|
|
PY_COLORS: '1'
|
|
ANSIBLE_FORCE_COLOR: '1'
|