diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4e0f66..0e1713d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,11 +67,27 @@ jobs: - name: Typecheck run: pnpm typecheck + lint: + name: Lint + timeout-minutes: 20 + runs-on: ubuntu-latest + + steps: + - name: Check out repo + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - uses: ./.github/actions/ci-setup + + - name: Format + run: pnpm format + ci-ok: name: CI OK runs-on: ubuntu-latest if: always() - needs: [lint-workflows, test, typecheck] + needs: [lint-workflows, test, typecheck, lint] steps: - name: Exit with error if some jobs are not successful run: exit 1 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 3c05cc4..f6ecbde 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,15 +3,15 @@ dedupePeers: true dedupePeerDependents: true minimumReleaseAge: 10080 minimumReleaseAgeExclude: - - '@oxc-project/*' - - '@rolldown/*' + - "@oxc-project/*" + - "@rolldown/*" - rolldown@1.0.1 - vite@8.0.13 - vitest@4.1.6 overrides: - lightningcss: '-' # we do not bundle any css - postcss: '-' # we do not bundle any css + lightningcss: "-" # we do not bundle any css + postcss: "-" # we do not bundle any css shellEmulator: true trustPolicy: no-downgrade diff --git a/rolldown.config.js b/rolldown.config.js index 73ce840..dd0db91 100644 --- a/rolldown.config.js +++ b/rolldown.config.js @@ -1,13 +1,13 @@ -import { defineConfig } from 'rolldown' +import { defineConfig } from "rolldown"; export default defineConfig({ - input: 'src/index.ts', + input: "src/index.ts", output: { - dir: 'dist', - format: 'esm', + dir: "dist", + format: "esm", cleanDir: true, minify: true, comments: false, }, - platform: 'node', -}) + platform: "node", +});