fix: lint and format cmds
Some checks failed
CI / install (pull_request) Successful in 3m28s
CI / lint (pull_request) Failing after 45s
CI / type-check (pull_request) Failing after 43s
CI / build (pull_request) Failing after 10m2s
CI / format-check (pull_request) Failing after 10m7s

This commit is contained in:
Tobias Klemp
2025-12-03 22:27:18 +01:00
parent c49cd85a09
commit cce1dfff33
21 changed files with 369 additions and 353 deletions

View File

@@ -21,8 +21,9 @@ jobs:
id: cache-key
run: echo "key=bun-${{ hashFiles('**/bun.lock') }}" >> $GITHUB_OUTPUT
- name: Cache node_modules
uses: actions/cache@v4
- name: Restore node_modules cache
id: cache-restore
uses: actions/cache/restore@v4
with:
path: node_modules
key: ${{ steps.cache-key.outputs.key }}
@@ -30,8 +31,16 @@ jobs:
bun-
- name: Install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
run: bun install --frozen-lockfile
- name: Save node_modules cache
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: node_modules
key: ${{ steps.cache-key.outputs.key }}
type-check:
runs-on: ubuntu-latest
container:
@@ -42,7 +51,7 @@ jobs:
uses: actions/checkout@v4
- name: Restore node_modules
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: node_modules
key: ${{ needs.install.outputs.cache-key }}
@@ -62,7 +71,7 @@ jobs:
uses: actions/checkout@v4
- name: Restore node_modules
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: node_modules
key: ${{ needs.install.outputs.cache-key }}
@@ -70,7 +79,7 @@ jobs:
bun-
- name: Run linting
run: bun run lint
run: bun run lint:check
format-check:
runs-on: ubuntu-latest
@@ -82,7 +91,7 @@ jobs:
uses: actions/checkout@v4
- name: Restore node_modules
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: node_modules
key: ${{ needs.install.outputs.cache-key }}
@@ -90,7 +99,7 @@ jobs:
bun-
- name: Check formatting
run: bun exec prettier --check .
run: bun run format:check
build:
runs-on: ubuntu-latest
@@ -102,7 +111,7 @@ jobs:
uses: actions/checkout@v4
- name: Restore node_modules
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: node_modules
key: ${{ needs.install.outputs.cache-key }}