From 68e5c91f884e852f815c3062dd13c7feb20ec749 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Mon, 10 Feb 2025 22:41:17 +0900 Subject: [PATCH] test: Add npm/yarn/pnpm test path --- .github/workflows/test.yml | 53 +++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bdf7da0..ff39d5a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: reporter: github-check textlint_flags: "doc/**" - test-pr-check: + test-pr-check-npm: if: github.event_name == 'pull_request' name: runner / textlint (github-pr-check) runs-on: ubuntu-latest @@ -32,10 +32,61 @@ jobs: uses: actions/checkout@v4 with: submodules: true + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: 20 + - name: textlint-github-check + uses: ./ + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-check + package_manager: npm + textlint_flags: "doc/**" + + test-pr-check-yarn: + if: github.event_name == 'pull_request' + name: runner / textlint (github-pr-check) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: 20 + - name: textlint-github-check + uses: ./ + with: + github_token: ${{ secrets.github_token }} + package_manager: yarn + reporter: github-pr-check + textlint_flags: "doc/**" + + test-pr-check-pnpm: + if: github.event_name == 'pull_request' + name: runner / textlint (github-pr-check) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: 20 + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: latest - name: textlint-github-check uses: ./ with: github_token: ${{ secrets.github_token }} + package_manager: pnpm reporter: github-pr-check textlint_flags: "doc/**"