Run format lint in CI (#630)

This commit is contained in:
Bjorn Lu
2026-05-25 09:11:00 +00:00
committed by GitHub
parent f1222b6286
commit d67d8d8799
3 changed files with 27 additions and 11 deletions
+17 -1
View File
@@ -67,11 +67,27 @@ jobs:
- name: Typecheck - name: Typecheck
run: pnpm 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: ci-ok:
name: CI OK name: CI OK
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: always() if: always()
needs: [lint-workflows, test, typecheck] needs: [lint-workflows, test, typecheck, lint]
steps: steps:
- name: Exit with error if some jobs are not successful - name: Exit with error if some jobs are not successful
run: exit 1 run: exit 1
+4 -4
View File
@@ -3,15 +3,15 @@ dedupePeers: true
dedupePeerDependents: true dedupePeerDependents: true
minimumReleaseAge: 10080 minimumReleaseAge: 10080
minimumReleaseAgeExclude: minimumReleaseAgeExclude:
- '@oxc-project/*' - "@oxc-project/*"
- '@rolldown/*' - "@rolldown/*"
- rolldown@1.0.1 - rolldown@1.0.1
- vite@8.0.13 - vite@8.0.13
- vitest@4.1.6 - vitest@4.1.6
overrides: overrides:
lightningcss: '-' # we do not bundle any css lightningcss: "-" # we do not bundle any css
postcss: '-' # we do not bundle any css postcss: "-" # we do not bundle any css
shellEmulator: true shellEmulator: true
trustPolicy: no-downgrade trustPolicy: no-downgrade
+6 -6
View File
@@ -1,13 +1,13 @@
import { defineConfig } from 'rolldown' import { defineConfig } from "rolldown";
export default defineConfig({ export default defineConfig({
input: 'src/index.ts', input: "src/index.ts",
output: { output: {
dir: 'dist', dir: "dist",
format: 'esm', format: "esm",
cleanDir: true, cleanDir: true,
minify: true, minify: true,
comments: false, comments: false,
}, },
platform: 'node', platform: "node",
}) });