Skip to content

Commit

Permalink
setting up some useful CI
Browse files Browse the repository at this point in the history
  • Loading branch information
userbradley committed Dec 30, 2023
1 parent e29ff58 commit 61135f6
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/broken-link-checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Broken Link Checker
on:
workflow_dispatch:
schedule:
- cron: "00 18 * * *"
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Links
uses: lycheeverse/lychee-action@v1.8.0
with:
args: --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --exclude-mail
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v4.0.1
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: Broken Link
8 changes: 8 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Pre-commit
on: pull_request
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pre-commit/action@v3.0.0
27 changes: 27 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: no-commit-to-branch
name: Ensure commits are only made to feature branches
args: ['-b', 'main']
- id: end-of-file-fixer
name: Ensure files have end of file
- id: trailing-whitespace
name: Trims extra whitespaces
- id: check-toml
name: Checks TOML files
- repo: https://github.com/google/yamlfmt
rev: v0.10.0
hooks:
- id: yamlfmt
name: Yaml Formatting
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.26.3
hooks:
- id: check-github-actions
name: GitHub actions check
- id: check-dependabot
name: GitHub Workflows
- id: check-dependabot
name: Dependabot

0 comments on commit 61135f6

Please sign in to comment.