Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Task file clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cableman committed May 24, 2022
1 parent d0152b4 commit 22e9318
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,21 @@ jobs:

- name: Run Prettier
run: npm run js:prettier -- --check

markdownlint:
name: Lint markdown
if: '!github.event.deleted'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Install problem matcher
uses: xt0rted/markdownlint-problem-matcher@v1
- name: Lint markdown
run: npm run lint:markdown
11 changes: 5 additions & 6 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,18 @@ tasks:
cmds:
- task dev:cli -- npm run chromatic


#"lint:markdown": "markdownlint-cli2",
#"lint:markdown:fix": "markdownlint-cli2-fix",

dev:lint:
summary: Run linters
cmds:
- task dev:cli -- npm run js:eslint
- task dev:cli -- npm run js:lint
- task dev:cli -- npm run css:stylelint
- task dev:cli -- npm run lint:markdown

# Chromatic for visual test
# npm run chromatic
dev:chromatic:
summary: Run Chromatic for visual test
cmds:
- task dev:cli -- npm run chromatic

dev:cli:
summary: Performs command inside container. Expects parameter(s).
Expand Down

0 comments on commit 22e9318

Please sign in to comment.