Skip to content

Commit 0b48ec9

Browse files
committed
feat(checks): reusable infrastructure checks
1 parent 0c1718f commit 0b48ec9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Reusable infrastructure checks
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
run:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Lint Ansible
15+
uses: ansible/ansible-lint@main
16+
17+
- name: Sanity Ansible
18+
uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
19+
20+
- name: Find and Validate NGINX Configs
21+
run: |
22+
find $GITHUB_WORKSPACE -name 'nginx.conf' | while read -r conf; do
23+
echo "Validating $conf"
24+
sudo nginx -t -c "$conf" || exit 1
25+
done

0 commit comments

Comments
 (0)