From b6c4139be484e2e3596fe379d3aeda22bee95489 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Sat, 25 Jun 2022 14:27:56 -0400 Subject: [PATCH] Add GitHub Action to lint Ansible playbooks --- .github/workflows/ansible-lint.yml | 15 +++++++++++++++ README.md | 4 +--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ansible-lint.yml diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml new file mode 100644 index 0000000..85ccd65 --- /dev/null +++ b/.github/workflows/ansible-lint.yml @@ -0,0 +1,15 @@ +name: Ansible Lint +on: + pull_request: + +jobs: + ansbile_linting: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Run ansible-lint + uses: ansible-community/ansible-lint-action@main + with: + path: 'ansible/' diff --git a/README.md b/README.md index 7a12952..eaaaaec 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # dots -[![Build Status](https://travis-ci.com/genebean/dots.svg?branch=master)](https://travis-ci.com/genebean/dots) -[![Dependency Status](https://gemnasium.com/badges/github.com/genebean/dots.svg)](https://gemnasium.com/github.com/genebean/dots) -[![security](https://hakiri.io/github/genebean/dots/master.svg)](https://hakiri.io/github/genebean/dots/master) +[![Ansible Lint](https://github.com/genebean/dots/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/genebean/dots/actions/workflows/ansible-lint.yml) My dot files and a tool to deploy them, and the programs that use them, to various OS's. Some additional tools that I consider part of my baseline setup