Skip to content

Commit d67d8d8

Browse files
authored
Run format lint in CI (#630)
1 parent f1222b6 commit d67d8d8

3 files changed

Lines changed: 27 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,27 @@ jobs:
6767
- name: Typecheck
6868
run: pnpm typecheck
6969

70+
lint:
71+
name: Lint
72+
timeout-minutes: 20
73+
runs-on: ubuntu-latest
74+
75+
steps:
76+
- name: Check out repo
77+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
78+
with:
79+
persist-credentials: false
80+
81+
- uses: ./.github/actions/ci-setup
82+
83+
- name: Format
84+
run: pnpm format
85+
7086
ci-ok:
7187
name: CI OK
7288
runs-on: ubuntu-latest
7389
if: always()
74-
needs: [lint-workflows, test, typecheck]
90+
needs: [lint-workflows, test, typecheck, lint]
7591
steps:
7692
- name: Exit with error if some jobs are not successful
7793
run: exit 1

pnpm-workspace.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ dedupePeers: true
33
dedupePeerDependents: true
44
minimumReleaseAge: 10080
55
minimumReleaseAgeExclude:
6-
- '@oxc-project/*'
7-
- '@rolldown/*'
6+
- "@oxc-project/*"
7+
- "@rolldown/*"
88
- rolldown@1.0.1
99
- vite@8.0.13
1010
- vitest@4.1.6
1111

1212
overrides:
13-
lightningcss: '-' # we do not bundle any css
14-
postcss: '-' # we do not bundle any css
13+
lightningcss: "-" # we do not bundle any css
14+
postcss: "-" # we do not bundle any css
1515

1616
shellEmulator: true
1717
trustPolicy: no-downgrade

rolldown.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { defineConfig } from 'rolldown'
1+
import { defineConfig } from "rolldown";
22

33
export default defineConfig({
4-
input: 'src/index.ts',
4+
input: "src/index.ts",
55
output: {
6-
dir: 'dist',
7-
format: 'esm',
6+
dir: "dist",
7+
format: "esm",
88
cleanDir: true,
99
minify: true,
1010
comments: false,
1111
},
12-
platform: 'node',
13-
})
12+
platform: "node",
13+
});

0 commit comments

Comments
 (0)