From 45e8ae1e1a60a97d768bb52960b4a6fc46ebde2f Mon Sep 17 00:00:00 2001 From: Kodai Nakamura Date: Sat, 20 Dec 2025 21:38:44 +0900 Subject: [PATCH] chore: update GHA workflows --- .github/workflows/check.yml | 37 +++++++++++++++++++ .github/workflows/release.yml | 13 ++++++- .../{start-first.yml => star-first.yml} | 0 .github/workflows/vitest.yml | 28 -------------- package.json | 1 + 5 files changed, 50 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/check.yml rename .github/workflows/{start-first.yml => star-first.yml} (100%) delete mode 100644 .github/workflows/vitest.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..0c93cc2 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,37 @@ +name: Vitest + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "22.x" + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Install dependencies + run: pnpm install + + - name: Run tsc + run: pnpm tsc + + - name: Run lint + run: pnpm lint + + - name: Run test + run: pnpm test + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bba66c5..09a5602 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,9 +23,20 @@ jobs: with: version: 10 + - name: Install dependencies + run: pnpm install + + - name: Run tsc + run: pnpm tsc + + - name: Run lint + run: pnpm lint + + - name: Run test + run: pnpm test + - name: Build plugin run: | - pnpm install pnpm run build - name: Create release diff --git a/.github/workflows/start-first.yml b/.github/workflows/star-first.yml similarity index 100% rename from .github/workflows/start-first.yml rename to .github/workflows/star-first.yml diff --git a/.github/workflows/vitest.yml b/.github/workflows/vitest.yml deleted file mode 100644 index fb72687..0000000 --- a/.github/workflows/vitest.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Vitest - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [22] - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install dependencies - run: npm install - - - name: Run tests with Vitest - run: npm run test diff --git a/package.json b/package.json index 48bedbf..bb4ff0c 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "version": "node version-bump.mjs && git add manifest.json versions.json", "test": "VITE_CJS_IGNORE_WARNING=true vitest run", "test:watch": "VITE_CJS_IGNORE_WARNING=true vitest", + "tsc": "tsc -noEmit -skipLibCheck", "tsc:watch": "tsc -noEmit -skipLibCheck --watch", "lint": "eslint .", "lint:watch": "nodemon --watch src --ext js,ts --exec \"npm run lint\""