-
-
Notifications
You must be signed in to change notification settings - Fork 112
55 lines (43 loc) · 1.19 KB
/
build.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build
on:
workflow_dispatch:
push:
pull_request:
jobs:
#ansible-lint:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: '3.10.15'
# - name: Set up Ansible
# run: |
# pip install -r requirements.txt
# bin/setup
# - name: Ansible Lint
# run: ansible-lint playbooks/*.yml --exclude community
playbook-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10.15'
- name: Set up Ansible
run: |
pip install -r requirements.txt
bin/setup
- name: Cache Ruby binary compiling
id: cache-ruby
uses: actions/cache@v3
with:
path: ~/.rbenv
key: ${{ runner.os }}-ruby-${{ github.sha }}
restore-keys: |
${{ runner.os }}-ruby-
${{ runner.os }}-
- name: Uninstall conflicting packages
run: sudo apt remove nginx libgd3
- name: Test Playbooks
run: ansible-playbook tests/suite.yml --limit test --connection local