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