forked from arista-netdevops-community/atd-cicd
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 965 Bytes
/
dev_test.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
name: Test the dev network
on:
push:
branches-ignore:
- main
jobs:
test-deploy-dev:
env:
net: dev
PASS: ${{ secrets.PASS }}
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Hi
run: echo "Hello World!"
- name: Checkout
uses: actions/checkout@v3
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: atd-inventory/dev/group_vars/ atd-inventory/dev/host_vars/
config_file: .yamllint.yml
- name: Start containers
run: docker-compose -f "docker-compose.yml" up -d --build
- name: Test with Batfish
run: docker-compose run atd-cicd python3 batfish-test.py
- name: Push configurations to dev
run: docker-compose run atd-cicd ansible-playbook playbooks/atd-fabric-provision.yml
- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yml" down