Skip to content

Commit b7b101a

Browse files
committed
Add CI workflows, spellcheck, and update configs
Added GitHub Actions workflows for spellchecking and linting, configured Dependabot for dependency updates, and introduced .cspell.json and .gitattributes for consistent spelling and line endings. Updated .htmlhintrc with additional HTML validation rules, improved the email pattern in README.md, and made minor changes to index.html and package.json.
1 parent cf95be5 commit b7b101a

File tree

9 files changed

+111
-8
lines changed

9 files changed

+111
-8
lines changed

.cspell.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version": "0.2",
3+
"dictionaryDefinitions": [],
4+
"words": [
5+
"christianoliff",
6+
"oliff"
7+
],
8+
"allowCompoundWords": true
9+
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Enforce Unix newlines
2+
* text=auto eol=lf

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
labels:
8+
- github-actions
9+
open-pull-requests-limit: 1
10+
11+
- package-ecosystem: npm
12+
directory: "/"
13+
schedule:
14+
interval: weekly
15+
versioning-strategy: increase
16+
open-pull-requests-limit: 1

.github/workflows/spellcheck.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Check spelling"
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
spellcheck:
13+
runs-on: ubuntu-latest
14+
if: ${{ github.actor != 'dependabot[bot]' }}
15+
steps:
16+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
17+
with:
18+
persist-credentials: false
19+
20+
- uses: streetsidesoftware/cspell-action@3294df585d3d639e30f3bc019cb11940b9866e95 # v8.0.0
21+
with:
22+
check_dot_files: false
23+
incremental_files_only: true
24+
inline: warning
25+
strict: false
26+
suggestions: true

.github/workflows/super-linter.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Super Linter"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
permissions:
15+
contents: read
16+
statuses: write
17+
name: Lint Code Base
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Lint Code Base
27+
uses: super-linter/super-linter/slim@ffde3b2b33b745cb612d787f669ef9442b1339a6 # v8.1.0
28+
env:
29+
DEFAULT_BRANCH: main
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
IGNORE_GITIGNORED_FILES: true
32+
LINTER_RULES_PATH: /
33+
LOG_LEVEL: NOTICE
34+
MARKDOWN_CONFIG_FILE: .markdownlint.json
35+
SUPPRESS_POSSUM: true
36+
VALIDATE_ALL_CODEBASE: false
37+
VALIDATE_EDITORCONFIG: false
38+
VALIDATE_HTML_PRETTIER: false
39+
VALIDATE_JSCPD: false
40+
VALIDATE_JSON_PRETTIER: false
41+
VALIDATE_MARKDOWN_PRETTIER: false
42+
VALIDATE_NATURAL_LANGUAGE: false

.htmlhintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"attr-value-not-empty": false,
77
"doctype-first": true,
88
"doctype-html5": true,
9+
"h1-require": true,
910
"id-unique": true,
11+
"main-require": true,
12+
"meta-charset-require": true,
13+
"meta-description-require": true,
14+
"meta-viewport-require": true,
1015
"spec-char-escape": true,
1116
"src-not-empty": true,
1217
"tag-pair": true,

README.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

index.html

Lines changed: 8 additions & 7 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"license": "MIT",
1919
"author": "C.Oliff (https://christianoliff.com)",
2020
"scripts": {
21+
"pa11y": "npx pa11y https://coliff.github.io/html5-email-regex/",
2122
"prettier": "npx prettier --write *.html",
23+
"spellcheck": "npx cspell \"**/*.yml\" \"**/*.json\" --no-progress",
2224
"test": "npx htmlhint **/*.html"
2325
}
2426
}

0 commit comments

Comments
 (0)