add GitHub workflow for linting nginx.conf

This commit is contained in:
Daniel Micay 2021-02-14 10:03:23 -05:00
parent 08affd9558
commit 414eabce85

19
.github/workflows/nginx.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Lint nginx configuration
on:
pull_request:
push:
branches: [master]
jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update
- run: sudo apt-get -y install python3-pip python3-setuptools
- run: pip3 install wheel
- run: pip3 install gixy
- run: ~/.local/bin/gixy nginx/nginx.conf