This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
Health Check #251
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Health Check | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: ["Deploy to Dokku"] | |
types: | |
- completed | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04] | |
flavor: [nginx-light, nginx-full, nginx-extras] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install nginx-pagespeed | |
run: | | |
sudo bash install.sh ${{ matrix.flavor }} | |
sudo cp pagespeed.conf.sample /etc/nginx/conf.d/pagespeed.conf | |
- name: Test configuration | |
run: | | |
sudo systemctl restart nginx | |
if [[ ! `sudo nginx -T | grep 'pagespeed on'` ]]; then | |
echo "Error: pagespeed is not included"; | |
exit 1; | |
fi |