Skip to content

Commit

Permalink
feat: add textlint jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Jan 3, 2024
1 parent 0723d90 commit 5f8702d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
timeout-minutes: 5
runs-on: ubuntu-latest

strategy:
matrix:
year: [2023, 2022]

steps:
- name: Setup repo
uses: actions/checkout@v4
Expand All @@ -49,9 +45,6 @@ jobs:
- name: Run linter
run: deno lint

- run: deno cache __tests__/deps.ts
- run: find posts/${{ matrix.year }} -name '*.md' | sort | xargs -I file deno task lint -c .textlintrc.json file

- name: Run tests
run: deno test -A --coverage=coverage

Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/textlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: textlint

Check warning on line 1 in .github/workflows/textlint.yml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (textlint)

on:
push:
branches:
- "main"
paths:
- "**.md"
pull_request:
paths:
- "**.md"

permissions:
contents: read

jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest

strategy:
matrix:
year: [2024, 2023]

steps:
- name: Setup repo
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- run: deno cache __tests__/deps.ts
- run: find posts/${{ matrix.year }} -name '*.md' | sort | xargs -I file deno task lint file

0 comments on commit 5f8702d

Please sign in to comment.