chore: switch to oxlint and oxfmt and tidy ci

This commit is contained in:
Jones Jankovic committed 2026-11-02 20:54:47 +10:30
1 parent 6af30218a5
commit 2b46b1a9da
306 files changed
+4927 -6687

No files matched your search

+9 -1
View File
@@ -1,5 +1,5 @@
name: Run lint
description: Run ESLint on src.
description: Run oxlint, the format check and the type check.
runs:
using: composite
@@ -7,3 +7,11 @@ runs:
- name: Lint
shell: bash
run: npm run lint
- name: Format check
shell: bash
run: npm run format:check
- name: Type check
shell: bash
run: npm run typecheck
@@ -8,6 +8,7 @@ runs:
uses: actions/setup-node@v7
with:
node-version: 26.x
cache: npm
- name: Install dependencies
shell: bash
-1
View File
@@ -22,7 +22,6 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v7
- name: Set build date
+7 -3
View File
@@ -6,6 +6,13 @@ on:
push:
branches: ["main"]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
lint:
# The layerchart Svelte build fails on Linux, so CI runs on Windows.
@@ -22,9 +29,6 @@ jobs:
- name: Run lint
uses: ./.github/actions/run-lint
- name: Type check
run: npm run typecheck
unit-tests:
runs-on: windows-latest
defaults:
-57
View File
@@ -1,57 +0,0 @@
# Manual stable release. Bump the version in package.json on main first.
name: Release
on:
workflow_dispatch:
inputs:
version_updated:
description: I have already updated the version in package.json
type: boolean
required: true
default: false
permissions:
contents: write
env:
GH_TOKEN: ${{ github.token }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Confirm version was updated
if: inputs.version_updated != true
run: |
echo "Check the confirmation box: you must update package.json version before releasing."
exit 1
- uses: actions/checkout@v7
- name: Read version
id: version
run: echo "version=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT"
- name: Build extension
id: build
uses: ./.github/actions/build-extension
with:
gh_release_update_check: "true"
update_channel: stable
release_repo: ${{ github.repository }}
- name: Create release if missing
run: |
if ! gh release view "${{ steps.version.outputs.version }}" 2>/dev/null; then
gh release create "${{ steps.version.outputs.version }}" \
--title "${{ steps.version.outputs.version }}" \
--notes "Edit this release description on GitHub."
fi
- name: Upload release assets
run: |
gh release upload "${{ steps.version.outputs.version }}" \
--clobber \
"${{ steps.build.outputs.chrome_zip }}" \
"${{ steps.build.outputs.firefox_zip }}"