mirror of
https://github.com/hugsy/gef.git
synced 2026-10-11 21:49:56 +00:00
## Description Imgur is blocked in UK since September 2025 (see #1200) Move imgur hosted images to local folder instead. Fixes #1200
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Validation
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
pre_commit:
|
|
name: Check formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/[email protected]
|
|
- uses: actions/[email protected]
|
|
with:
|
|
python-version: "3.10"
|
|
- uses: pre-commit/[email protected]
|
|
|
|
docs_link_check:
|
|
name: Check URLs in docs
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/[email protected]
|
|
- name: Restore lychee cache
|
|
id: restore-cache
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
path: .lycheecache
|
|
key: cache-lychee-${{ github.sha }}
|
|
restore-keys: cache-lychee-
|
|
- name: Check links
|
|
uses: lycheeverse/[email protected]
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
with:
|
|
args: --exclude-mail --accept=401 --no-progress --exclude 'https://cs.github.com/hugsy/gef\?q=.*' '**/*.md'
|
|
fail: false
|
|
workingDirectory: docs/
|
|
- name: Save lychee cache
|
|
uses: actions/cache/save@v4
|
|
if: always()
|
|
with:
|
|
path: .lycheecache
|
|
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
|