Skip to content

Commit

Permalink
finally, hopefully, accross the finish line, putting everything to po…
Browse files Browse the repository at this point in the history
…int to master, removing todos #259
  • Loading branch information
mrjones-plip committed Aug 7, 2020
1 parent de261a9 commit 4107065
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/scripts/deleteme.sh

This file was deleted.

14 changes: 14 additions & 0 deletions .github/scripts/muffet.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#!/bin/bash

# This script is used in Github Actions to do link checking on commits to branches and master, so
# please edit with care! See ../workflows/ci.yml for specific usage.
#
# If you're doing local development and want to run link checkers locally, please use this script!
# You'll need:
# - install muffet - https://github.com/raviqqe/muffet
# - make sure muffet is in your PATH
# - run from root of this repo: ./.github/scripts/muffet.sh
#
# If we have errors from this script being too aggressive (see how large downloads on
# download.docker.com are excluded below) you can add additional sites as needed. Please
# use extremely granular URLs so as not to exclude more than we need to.

muffet http://localhost:1313 \
--buffer-size 50000 \
--timeout 35 \
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Notes:
# - All software to do CI is pinned so they don't get upgraded and break w/o us knowing why.
# - All software installed below is pinned so they don't get upgraded and break w/o us knowing why.
# - If you bump one version up to latest, please bump them all so we stay current!
# - Hugo builds the site twice: once for link checking and once minified for pushing live
# - Bash script for muffet is intentionally stand alone so devs/content editors can easily run it locally
Expand Down Expand Up @@ -44,7 +44,6 @@ jobs:
hugo server&
sleep 5
# todo - get this command working - bad path currently
- name: All Branches - Run Muffet link checkier
shell: bash
run: ./.github/scripts/muffet.sh
Expand Down Expand Up @@ -77,14 +76,12 @@ jobs:
user_email: medic-ci@github
publish_branch: master

# todo - revert to #cht-squad-docs & master branch
- name: Master Branch Only - Report errors to slack if on Master
if: ${{ github.ref == 'refs/heads/259-add-link-checker-to-ci' && failure() }}
if: ${{ github.ref == 'refs/heads/master' && failure() }}
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: '${{ secrets.SLACK_WEB_HOOK }}'
# SLACK_CHANNEL: '#cht-squad-docs'
SLACK_CHANNEL: '#mrjones-testing-channel'
SLACK_CHANNEL: '#cht-squad-docs'
SLACK_COLOR: '#3278BD'
SLACK_ICON: ":flappingphone:"
SLACK_MESSAGE: 'Deploy Failed'
Expand Down

0 comments on commit 4107065

Please sign in to comment.