-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (28 loc) · 1.06 KB
/
main.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
# GitHub Actions docs
# https://help.github.com/en/articles/about-github-actions
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
# see also: https://github.com/filipesilva/ng-github-actions/blob/master/.github/workflows/main.yml
name: CI
on: [push]
jobs:
build:
# Machine environment:
runs-on: ubuntu-22.04
steps:
- name: delete ansible
run: sudo apt purge ansible
- name: Install Testresource
run: sudo apt install python3-testresources
- name: install ansible-lint
run: |
pip3 install --upgrade pip
pip3 install --upgrade setuptools wheel
pip3 install ansible-lint==5.3.2 ansible==5.3.0
- name: Checkout
uses: actions/checkout@v3
- name: Fetch Roles Ansible-Galaxy
run: ~/.local/bin/ansible-galaxy install -r requirements.yml
- name: lint files
run: ~/.local/bin/ansible-lint
#- name: Syntax check
# run: ~/.local/bin/ansible-playbook --syntax-check $(find *.yml \! -name inventory.yml -a \! -name requirements.yml )