Skip to content

Commit

Permalink
feat(checks): reusable infrastructure checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov committed Sep 19, 2024
1 parent 0c1718f commit 0b48ec9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/reusable-infrastructure-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Reusable infrastructure checks

on:
workflow_call:

jobs:
run:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint Ansible
uses: ansible/ansible-lint@main

- name: Sanity Ansible
uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main

- name: Find and Validate NGINX Configs
run: |
find $GITHUB_WORKSPACE -name 'nginx.conf' | while read -r conf; do
echo "Validating $conf"
sudo nginx -t -c "$conf" || exit 1
done

0 comments on commit 0b48ec9

Please sign in to comment.