-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: lint & check spelling/links in guides (#91)
- Loading branch information
1 parent
b8af5e1
commit 858a7f0
Showing
19 changed files
with
361 additions
and
147 deletions.
There are no files selected for viewing
32 changes: 31 additions & 1 deletion
32
.github/workflows/playwright.yml β .github/workflows/guides.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,39 @@ | ||
name: Playwright Tests | ||
name: Guides | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
## SPELL CHECK ALL GUIDES | ||
spell-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- uses: rojopolis/[email protected] | ||
name: Spellcheck | ||
with: | ||
config_path: .spellcheck.yml | ||
task_name: SPCheck | ||
|
||
## LINT CHECK ALL GUIDES | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
# SETUP & INSTALL | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- uses: ./.github/actions/setup-node | ||
with: | ||
install: false | ||
- name: Install dependencies | ||
run: npm install -g [email protected] | ||
# RUN LINT CHECK | ||
- name: Lint Check | ||
run: markdownlint --config .markdownlint.yaml --ignore-path .markdownlintignore '**/*.mdx' | ||
|
||
## QUICKSTART TEST | ||
quickstart-test: | ||
timeout-minutes: 30 | ||
name: build-quickstart-contract | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Links | ||
|
||
on: | ||
deployment_status | ||
|
||
jobs: | ||
check-links: | ||
uses: FuelLabs/github-actions/.github/workflows/next-links.yml@master | ||
with: | ||
status: ${{ github.event.deployment_status.state }} | ||
preview-url: ${{ github.event.deployment_status.environment_url }} | ||
folder-path: docs/guides/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'default': true # Default state for all rules | ||
'MD013': false # Disable rule for line length | ||
'MD033': false # Disable rule banning inline HTML | ||
'MD034': false # Disable rule banning bare urls | ||
'MD025': { 'front_matter_title': '' } # Without this, the title and h1 are considered two h1s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
workflow | ||
docs/latest | ||
docs/sway | ||
docs/builds | ||
docs/fuelup | ||
docs/fuels-rs | ||
docs/fuels-ts | ||
docs/fuels-wallet | ||
docs/fuel-specs | ||
docs/fuel-indexer | ||
docs/fuel-graphql-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
matrix: | ||
- name: SPCheck | ||
aspell: | ||
lang: en | ||
dictionary: | ||
encoding: utf-8 | ||
wordlists: | ||
- ./spell-check-custom-words.txt | ||
pipeline: | ||
- pyspelling.filters.markdown: | ||
markdown_extensions: | ||
- pymdownx.superfences | ||
- pyspelling.filters.html: | ||
comments: false | ||
ignores: | ||
- code | ||
- pre | ||
- TestAction | ||
sources: | ||
- '**/guides/docs/**/*.mdx' | ||
default_encoding: utf-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.