Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Health Check

Health Check #222

Workflow file for this run

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