Skip to content

Commit cee763c

Browse files
dev: practicalli book ci configurations
1 parent 82ce912 commit cee763c

File tree

8 files changed

+56
-25
lines changed

8 files changed

+56
-25
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Default owner accounts for the current repository
44
# Automatically added as a reviewr to all pull requests (not including drafts)
55

6-
* @practicalli-john
6+
* @practicalli-johnny

.github/config/markdown-lint.jsonc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
// MD033/no-inline-html - Inline HTML
180180
"MD033": {
181181
// Allowed elements
182-
"allowed_elements": ["iframe", "p", "div"]
182+
"allowed_elements": ["a", "iframe", "img", "p", "div"]
183183
},
184184

185185
// MD034/no-bare-urls - Bare URL used
@@ -226,9 +226,7 @@
226226
"MD042": true,
227227

228228
// MD043/required-headings/required-headers - Required heading structure
229-
"MD043": {
230-
231-
},
229+
"MD043": {},
232230

233231
// MD044/proper-names - Proper names should have the correct capitalization
234232
"MD044": {
@@ -244,13 +242,19 @@
244242
"MD045": true,
245243

246244
// MD046/code-block-style - Code block style
247-
"MD046": false,
245+
"MD046": {
246+
// Block style
247+
"style": "consistent"
248+
},
248249

249250
// MD047/single-trailing-newline - Files should end with a single newline character
250251
"MD047": true,
251252

252253
// MD048/code-fence-style - Code fence style
253-
"MD048": false,
254+
"MD048": {
255+
// Code fence style
256+
"style": "consistent"
257+
},
254258

255259
// MD049/emphasis-style - Emphasis style should be consistent
256260
"MD049": {
@@ -273,8 +277,6 @@
273277
// MD053/link-image-reference-definitions - Link and image reference definitions should be needed
274278
"MD053": {
275279
// Ignored definitions
276-
"ignored_definitions": [
277-
"//"
278-
]
280+
"ignored_definitions": ["//"]
279281
}
280282
}

.github/config/megalinter.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
# Configuration file for MegaLinter
33
#
44
# General configuration:
5-
# https://oxsecurity.github.io/megalinter/configuration/
5+
# https://megalinter.io/latest/configuration/
66
#
77
# Specific Linters:
8-
# https://oxsecurity.github.io/megalinter/latest/supported-linters/
8+
# https://megalinter.io/latest/supported-linters/
9+
10+
# ------------------------
11+
# Validate all files if true
12+
# or new / edited files if false
13+
VALIDATE_ALL_CODEBASE: false
914

1015
# ------------------------
1116
# Linters
@@ -29,6 +34,7 @@ ENABLE:
2934

3035
# CLOJURE_CLJ_KONDO_CONFIG_FILE: ".github/config/clj-kondo-ci-config.edn"
3136
# CLOJURE_CLJ_KONDO_ARGUMENTS: "--lint deps.edn"
37+
# CLOJURE_CLJ_KONDO_FILTER_REGEX_EXCLUDE: "dev|develop"
3238
# CLOJURE_CLJ_KONDO_FILTER_REGEX_EXCLUDE: "resources"
3339

3440
# CREDENTIALS_SECRETLINT_DISABLE_ERRORS: true
@@ -43,10 +49,12 @@ MARKDOWN_MARKDOWN_LINK_CHECK_CONFIG_FILE: ".github/config/markdown-link-check.js
4349
MARKDOWN_REMARK_LINT_DISABLE_ERRORS: true
4450
# MARKDOWN_MARKDOWN_TABLE_FORMATTER_DISABLE_ERRORS: false
4551

52+
REPOSITORY_GITLEAKS_CONFIG_FILE: ".github/config/gitleaks.toml"
4653
REPOSITORY_TRUFFLEHOG_DISABLE_ERRORS: true # Errors only as warnings
4754

4855
# SPELL_CSPELL_DISABLE_ERRORS: true
4956
SPELL_MISSPELL_DISABLE_ERRORS: true
57+
SPELL_LYCHEE_CONFIG_FILE: ".github/config/lychee.toml"
5058
SPELL_LYCHEE_DISABLE_ERRORS: true # Errors are only warnings
5159

5260
# YAML_PRETTIER_FILTER_REGEX_EXCLUDE: (docs/)

.github/pull_request_template.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
:memo: Description
2+
3+
4+
:white_check_mark: Checklist
5+
6+
- [ ] Commits should be cryptographically signed (SSH or GPG)
7+
8+
9+
## Practicalli Guidelines
10+
111
Please follow these guidelines when submitting a pull request
212

313
- refer to all relevant issues, using `#` followed by the issue number (or paste full link to the issue)
@@ -20,4 +30,4 @@ Please raise an issue so we can discuss changes first, especially changes relate
2030

2131
## Review process
2232

23-
All pull requests are reviewed by @practicalli-john and feedback provided, usually the same day but please be patient.
33+
All pull requests are reviewed by @practicalli-johnny and feedback provided, usually the same day but please be patient.

.github/workflows/changelog-check.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
name: Changelog Check
55
on:
66
pull_request:
7+
paths-ignore:
8+
- "README.md"
79
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
810

911
jobs:
@@ -15,14 +17,19 @@ jobs:
1517
- run: echo "🐧 Job running on ${{ runner.os }} server"
1618
- run: echo "🐙 Using ${{ github.ref }} branch from ${{ github.repository }} repository"
1719

20+
# Git Checkout
1821
- name: Checkout Code
1922
uses: actions/checkout@v4
2023
with:
2124
fetch-depth: 0
2225
sparse-checkout: |
26+
docs
27+
overrides
28+
.github
2329
CHANGELOG.md
24-
- run: echo "🐙 ${{ github.repository }} repository sparse-checkout to the CI runner."
30+
- run: echo "🐙 Sparse Checkout of ${{ github.repository }} repository to the CI runner."
2531

32+
# Changelog Enforcer
2633
- name: Changelog Enforcer
2734
uses: dangoslen/changelog-enforcer@v3
2835
with:

.github/workflows/megalinter.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# MegaLinter GitHub Action configuration file
3-
# More info at https://megalinter.github.io
4-
# All variables described in https://megalinter.github.io/configuration/
3+
# More info at https://megalinter.io
4+
# All variables described in https://megalinter.io/latest/configuration/
55

66
name: MegaLinter
77
on:
@@ -30,18 +30,18 @@ jobs:
3030
- name: Checkout Code
3131
uses: actions/checkout@v4
3232
with:
33-
token: "${{ secrets.PAT || secrets.GITHUB_TOKEN }}"
3433
fetch-depth: 0
3534
sparse-checkout: |
3635
docs
3736
overrides
3837
.github
3938
- run: echo "🐙 Sparse Checkout of ${{ github.repository }} repository to the CI runner."
39+
4040
# MegaLinter Configuration
4141
- name: MegaLinter Run
4242
id: ml
4343
## latest release of major version
44-
uses: oxsecurity/megalinter/flavors/documentation@v7
44+
uses: oxsecurity/megalinter/flavors/documentation@v8
4545
env:
4646
# ADD CUSTOM ENV VARIABLES OR DEFINE IN MEGALINTER_CONFIG file
4747
MEGALINTER_CONFIG: .github/config/megalinter.yaml
@@ -54,7 +54,7 @@ jobs:
5454
# Upload MegaLinter artifacts
5555
- name: Archive production artifacts
5656
if: ${{ success() }} || ${{ failure() }}
57-
uses: actions/upload-artifact@v3
57+
uses: actions/upload-artifact@v4
5858
with:
5959
name: MegaLinter reports
6060
path: |

.github/workflows/publish-book.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ jobs:
3636
fetch-depth: 0
3737
sparse-checkout: |
3838
docs
39+
includes
3940
overrides
4041
- run: echo "🐙 ${{ github.repository }} repository sparse-checkout to the CI runner."
42+
4143
- name: Setup Python
42-
uses: actions/setup-python@v4
44+
uses: actions/setup-python@v5
4345
with:
4446
python-version: 3.x
4547

4648
- name: Cache
47-
uses: actions/cache@v3
49+
uses: actions/cache@v4
4850
with:
4951
key: ${{ github.ref }}
5052
path: .cache

.github/workflows/scheduled-version-check.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ jobs:
3131
- run: echo "🐧 Job running on ${{ runner.os }} server"
3232
- run: echo "🐙 Using ${{ github.ref }} branch from ${{ github.repository }} repository"
3333

34-
- name: "Checkout code"
34+
- name: Checkout Code
3535
uses: actions/checkout@v4
36-
- run: echo "🐙 ${{ github.repository }} repository was cloned to the runner."
37-
36+
with:
37+
fetch-depth: 0
38+
sparse-checkout: |
39+
.github
40+
- run: echo "🐙 ${{ github.repository }} repository sparse-checkout to the CI runner."
3841
- name: "Antq Check versions"
3942
uses: liquidz/antq-action@main
4043
with:
@@ -44,4 +47,3 @@ jobs:
4447
# Summary
4548
- run: echo "🎨 library versions checked with liquidz/antq"
4649
- run: echo "🍏 Job status is ${{ job.status }}."
47-

0 commit comments

Comments
 (0)