ci: replace prettier and eslint with oxfmt and oxlint
This commit is contained in:
@@ -2,14 +2,14 @@ name: ci
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['**']
|
branches: ["**"]
|
||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * *'
|
- cron: "0 2 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: 'ci-${{ forgejo.ref }}'
|
group: "ci-${{ forgejo.ref }}"
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run go tests (race)
|
- name: Run go tests (race)
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: '1'
|
CGO_ENABLED: "1"
|
||||||
run: go test -race ./...
|
run: go test -race ./...
|
||||||
|
|
||||||
- name: Build server binary
|
- name: Build server binary
|
||||||
@@ -78,10 +78,10 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Check prettier formatting
|
- name: Check formatting
|
||||||
run: bunx prettier . --check
|
run: bun run format:check
|
||||||
|
|
||||||
- name: Run eslint
|
- name: Run oxlint
|
||||||
run: bun run lint:ts
|
run: bun run lint:ts
|
||||||
|
|
||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ go build -o server ./cmd/server
|
|||||||
golangci-lint run ./...
|
golangci-lint run ./...
|
||||||
go mod tidy
|
go mod tidy
|
||||||
go test -race ./...
|
go test -race ./...
|
||||||
bunx prettier . --check
|
bunx oxfmt --check
|
||||||
bun run lint:ts
|
bun run lint:ts
|
||||||
bun run typecheck
|
bun run typecheck
|
||||||
bun run build:assets
|
bun run build:assets
|
||||||
|
|||||||
@@ -12,5 +12,5 @@
|
|||||||
"removeComments": false,
|
"removeComments": false,
|
||||||
"skipLibCheck": true
|
"skipLibCheck": true
|
||||||
},
|
},
|
||||||
"include": ["eslint.config.ts", "static/**/*.ts", "scripts/**/*.ts"]
|
"include": ["static/**/*.ts", "scripts/**/*.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user