-
Notifications
You must be signed in to change notification settings - Fork 30
35 lines (31 loc) · 1.04 KB
/
checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Checks
on:
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache
id: cache
uses: actions/cache@v3
with:
path: ~/.cache/dprint # TODO add more paths here for various checkers
key: ${{ runner.os }}-${{ hashFiles('**/*dprint.json') }}
- name: Format Check (dprint)
uses: dprint/check@v2.2
with:
config-path: .dprint.json
# FIXME .mlc.toml config not working... https://github.com/becheran/mlc/issues/78
- name: Markup Link Checker (mlc)
uses: becheran/mlc@v0.16.2
with:
args: "./content/ --ignore-links '*slides.md,*slides.html,*twitter.com*,*sec.gov*,*support.giphy.com*,*bitdefender.com*,*etherscan.io*,*cryptoslate.com*,*golden.com*,'"
- name: Check for image issues (orphans and broken links)
run: ${PWD}/tools/scripts/orphan-image-scan.sh content/