From 935948d4c2a124aa876aae3b09066e8c7b73aa81 Mon Sep 17 00:00:00 2001 From: FUJI Goro Date: Tue, 11 Feb 2025 11:02:12 +0900 Subject: [PATCH 1/2] lint in CI --- .github/workflows/ci.yml | 2 ++ eslint.config.mjs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d3aaf4..2c40858 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,8 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm install -g nyc - run: npm ci + - run: npx tsc + - run: npm run lint - run: npm run test:cover - uses: codecov/codecov-action@v5 with: diff --git a/eslint.config.mjs b/eslint.config.mjs index 7303492..3d5529e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -17,7 +17,7 @@ const compat = new FlatCompat({ }); export default [{ - ignores: ["**/*.js"], + ignores: ["**/*.js", "test/deno*", "test/bun*"], }, ...fixupConfigRules(compat.extends( "eslint:recommended", "plugin:@typescript-eslint/recommended", From 95acb655e0f5c602466fcd14adb3242ea71c8e52 Mon Sep 17 00:00:00 2001 From: FUJI Goro Date: Tue, 11 Feb 2025 11:05:11 +0900 Subject: [PATCH 2/2] introduce timeline action --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c40858..939a092 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,6 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm install -g nyc - run: npm ci - - run: npx tsc - - run: npm run lint - run: npm run test:cover - uses: codecov/codecov-action@v5 with: @@ -49,6 +47,18 @@ jobs: - run: npm ci - run: npm run test:browser -- --browsers ${{ matrix.browser }} + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + cache: npm + node-version: '22' + - run: npm ci + - run: npx tsc + - run: npm run lint deno: runs-on: ubuntu-latest @@ -70,3 +80,16 @@ jobs: - run: bun install - run: npm run test:bun + timeline: + runs-on: ubuntu-latest + permissions: + actions: read + needs: + - nodejs + - browser + - lint + - deno + - bun + steps: + - uses: Kesin11/actions-timeline@v2 +