mirror of
https://github.com/rustfs/console.git
synced 2026-11-25 14:21:46 +08:00
13 lines
553 B
JavaScript
13 lines
553 B
JavaScript
import test from "node:test"
|
|
import assert from "node:assert/strict"
|
|
import fs from "node:fs"
|
|
|
|
const source = fs.readFileSync(".github/workflows/quality.yml", "utf8")
|
|
const formattingJob = source.match(/ formatting:\n[\s\S]*?(?=\n typescript:)/)?.[0] ?? ""
|
|
|
|
test("formatting CI checks Prettier without running lint fixes", () => {
|
|
assert.match(formattingJob, /- name: 💅 Check Prettier formatting\n\s+run: pnpm run format:check/)
|
|
assert.doesNotMatch(formattingJob, /pnpm run lint/)
|
|
assert.doesNotMatch(formattingJob, /Auto-fix formatting/)
|
|
})
|