Skip to content

Commit

Permalink
Check links integrity on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Dec 23, 2022
1 parent c811de5 commit 7f733b5
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ indent_size = 4
[*.toml]
indent_style = space
indent_size = 4

[*.json]
indent_style = space
indent_size = 2

[*.{yaml,yml}]
indent_style = space
indent_size = 2
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches: ["main"]
schedule:
- cron: "7 7 * * 3"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

###########
# Testing #
###########

markdown-link:
name: check (links)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: .markdown-link-check.json
folder-path: ./
use-quiet-mode: "yes"
use-verbose-mode: "yes"
17 changes: 17 additions & 0 deletions .markdown-link-check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"ignorePatterns": [{
"pattern": "^https://github.com/instrumentisto/rust-incubator/generate"
}, {
"pattern": "^https://crates.io/search\\?"
}, {
"pattern": "^https://dalek.rs"
}, {
"pattern": "^https://www.cs.bgu.ac.il"
}],
"httpHeaders": [{
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}]
}

0 comments on commit 7f733b5

Please sign in to comment.