From 4ed831923b82c7ffa5756a92e8737db5bdedb3d3 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sat, 29 Jun 2024 08:35:58 -0400 Subject: [PATCH] chore: some updates Signed-off-by: Dave Henderson --- .github/workflows/sitecheck.yml | 32 +++++++++++++++++++++++ Caddyfile | 4 +++ site/index.html | 46 +++++++++++++++++++++++++++++---- 3 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/sitecheck.yml create mode 100644 Caddyfile diff --git a/.github/workflows/sitecheck.yml b/.github/workflows/sitecheck.yml new file mode 100644 index 0000000..bdab9cc --- /dev/null +++ b/.github/workflows/sitecheck.yml @@ -0,0 +1,32 @@ +name: Site Checks +on: + pull_request: + branches: [ main ] + +jobs: + muffet: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install caddy + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release --repo caddyserver/caddy download -p 'caddy*linux_amd64.tar.gz' --output caddy.tar.gz + tar xvf caddy.tar.gz caddy + sudo mv caddy /usr/local/bin + - run: caddy start + - name: Install muffet + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release --repo raviqqe/muffet download -p muffet_linux_amd64.tar.gz + tar xvf muffet_linux_amd64.tar.gz muffet + sudo mv muffet /usr/local/bin + - name: check links with muffet + run: | + muffet http://localhost:2015 \ + --buffer-size=8192 \ + --exclude="https://twitter\.com" + - run: caddy stop + if: always() diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..e357bb1 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,4 @@ +http://localhost:2015 + +root * ./site +file_server diff --git a/site/index.html b/site/index.html index 853c12d..b5820f4 100644 --- a/site/index.html +++ b/site/index.html @@ -55,11 +55,47 @@ -