diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 0037361..aee0216 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -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 @@ -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 diff --git a/.github/workflows/textlint.yml b/.github/workflows/textlint.yml new file mode 100644 index 0000000..14858f4 --- /dev/null +++ b/.github/workflows/textlint.yml @@ -0,0 +1,36 @@ +name: 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 +