Skip to content

Update actions/setup-node action to v4.0.3 #24

Update actions/setup-node action to v4.0.3

Update actions/setup-node action to v4.0.3 #24

name: validate nginx
on:
pull_request:
paths:
- 'nginx.compat.conf'
- '.github/workflows/validate-nginx.yml'
jobs:
validate-nginx:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- name: install
run: |
sudo apt-get update -qq
sudo apt-get install -qq nginx
- name: validate
shell: bash
run: |
sudo useradd -M nginx
shopt -s globstar
set -eux
for f in **/nginx*.conf; do
if ! sudo nginx -t -c "$(cd "$(dirname "$f")" && pwd)/$(basename "$f")"; then
exit 1
fi
done
exit 0