Skip to content

Commit 5d1c8ce

Browse files
committed
Add spellcheck CI job
1 parent 6ee8aad commit 5d1c8ce

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ php:
1212
- "7.4"
1313
- "7.2"
1414

15+
env:
16+
- TYPOS_VERSION="1.15.0"
17+
1518
jobs:
1619
include:
1720
- php: "8.1"
@@ -25,6 +28,17 @@ jobs:
2528
install:
2629
- "composer update --no-interaction --prefer-lowest"
2730
- "composer update --no-interaction --with-all-dependencies szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset 'php-stubs/wordpress-stubs:^6.1'"
31+
- name: "Search for misspellings"
32+
before_install: "skip"
33+
install:
34+
- |
35+
mkdir -p "${HOME}/typos"
36+
wget --progress=dot:mega --directory-prefix="${HOME}/typos" \
37+
"https://github.com/crate-ci/typos/releases/download/v${TYPOS_VERSION}/typos-v${TYPOS_VERSION}-x86_64-unknown-linux-musl.tar.gz"
38+
tar -xzvf "${HOME}/typos/typos-v${TYPOS_VERSION}-x86_64-unknown-linux-musl.tar.gz" -C "${HOME}/typos" ./typos
39+
script:
40+
- |
41+
"${HOME}/typos/typos"
2842
- name: "Check exported files"
2943
php: "7.4"
3044
before_install: "skip"

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[default.extend-words]
2+
invokable = "invokable"

0 commit comments

Comments
 (0)