-
-
Notifications
You must be signed in to change notification settings - Fork 607
37 lines (35 loc) · 1.06 KB
/
ci.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
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.x']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pip'
- run: pip install -r requirements.txt
- uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-galaxy-${{ hashFiles('galaxy.yml') }}
- run: ansible-galaxy install -r galaxy.yml
- name: Check playbook syntax
run: |
ansible-playbook --syntax-check -e env=development deploy.yml
ansible-playbook --syntax-check -e env=development dev.yml
ansible-playbook --syntax-check -e env=development server.yml
ansible-playbook --syntax-check -e env=development rollback.yml
ansible-playbook --syntax-check -e xdebug_tunnel_inventory_host=1 xdebug-tunnel.yml