Skip to content

Commit

Permalink
chore: Run docu checks on docu changes
Browse files Browse the repository at this point in the history
  • Loading branch information
a-thaler committed Dec 14, 2023
1 parent bdbcd10 commit fc0b9f7
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Prepare checks
description: Prepares everything for code check execution
name: Setup Golang
description: Configures Golang with caching

runs:
using: "composite"
Expand Down
25 changes: 4 additions & 21 deletions .github/workflows/pull-code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Prepare test
uses: "./.github/template/prepare-checks"
- name: Setup Golang
uses: "./.github/template/setup-golang"

- name: Run tests
run: make test
Expand All @@ -29,29 +29,12 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Prepare test
uses: "./.github/template/prepare-checks"
- name: Setup Golang
uses: "./.github/template/setup-golang"

- name: Run linting
uses: golangci/golangci-lint-action@v3
with:
install-mode: binary
version: latest
args: --timeout=5m --config=./.golangci.yaml

markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Validate links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.mlc.config.json'
folder-path: '.'
max-depth: -1
check-modified-files-only: 'yes'
base-branch: ${{ github.base_ref }}
26 changes: 26 additions & 0 deletions .github/workflows/pull-docu-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PR Docu Checks

on:
pull_request:
branches:
- "main"
- "release-*"
workflow_dispatch:

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Validate links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.mlc.config.json'
folder-path: '.'
max-depth: -1
check-modified-files-only: 'yes'
base-branch: ${{ github.base_ref }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Governance
name: PR Github Checks

on:
pull_request_target:
Expand Down Expand Up @@ -29,5 +29,4 @@ jobs:
fix
test
requireScope: false
# https://regex101.com/r/O5OZvC/1
subjectPattern: ^([A-Z].*[^.]|bump .*)$

0 comments on commit fc0b9f7

Please sign in to comment.