Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ jobs:
version: 10
run_install: false

- uses: actions/setup-node@v4
with:
node-version: 25
cache: pnpm
- uses: oven-sh/setup-bun@v2

- run: pnpm install

Expand All @@ -37,7 +34,19 @@ jobs:
echo "Changed files:"
echo "$changes"

pnpm run lint-ci 2>&1 | grep -E "($(echo "$changes" | tr '\n' '|' | sed 's/|$//'))" || true
# Run lint and capture output
lint_output=$(pnpm run lint-ci 2>&1 || true)

# Filter for changed files and check if any issues found
filtered_output=$(echo "$lint_output" | grep -E "($(echo "$changes" | tr '\n' '|' | sed 's/|$//'))" || true)

if [ -n "$filtered_output" ]; then
echo "Lint issues found in changed files:"
echo "$filtered_output"
exit 1
else
echo "No lint issues in changed files"
fi
else
echo "No changed files."
fi
Expand All @@ -54,10 +63,7 @@ jobs:
version: 10
run_install: false

- uses: actions/setup-node@v4
with:
node-version: 25
cache: pnpm
- uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: pnpm install
Expand Down
2 changes: 0 additions & 2 deletions .spectral.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion openapi/components/paths/favorites.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"200":
description: OK
delete:
operationId: clearFavoriteGroup
summary: Clear Favorite Group

Check failure on line 56 in openapi/components/paths/favorites.yaml

View workflow job for this annotation

GitHub Actions / Lint

Expected mapping keys to be in specified order. 'summary' should be after 'operationId'.
operationId: clearFavoriteGroup
description: Clear ALL contents of a specific favorite group.
tags:
- favorites
Expand Down
1 change: 0 additions & 1 deletion openapi/components/requests/AddFavoriteRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
title: AddFavoriteRequest
type: object
properties:
favoriteId:
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"lint-spectral": "spectral lint openapi/openapi.yaml",
"lint-spectral-ci": "pnpm -s run lint-spectral -f github-actions",
"lint-spectral": "bun spectral openapi/openapi.yaml",
"lint-spectral-ci": "bun spectral -i openapi/openapi.yaml",
"lint-eslint": "eslint .",
"lint-eslint-ci": "pnpm -s run lint-eslint -f @jamesacarr/eslint-formatter-github-actions",
"lint": "pnpm --no-bail --stream --reporter-hide-prefix --color run '/^lint-(?!ci$)(?!.*-ci$).*/'",
"lint-ci": "pnpm --no-bail --stream --reporter-hide-prefix run '/^lint-.*-ci$/'",
"bundle": "redocly bundle"
},
"dependencies": {
"@actions/core": "^1.11.1",
"@apidevtools/json-schema-ref-parser": "^15.1.2",
"@redocly/cli": "^2.12.0",
"@stoplight/spectral-cli": "^6.15.0",
"@stoplight/spectral-formats": "^1.8.2",
"@stoplight/spectral-formatters": "^1.5.0",
"@stoplight/spectral-functions": "^1.10.1",
"@stoplight/spectral-rulesets": "^1.22.0",
"change-case": "^5.4.4",
Expand All @@ -29,7 +31,11 @@
"@ariesclark/eslint-config": "^3.1.1",
"@eslint-react/eslint-plugin": "^2.3.9",
"@jamesacarr/eslint-formatter-github-actions": "^0.2.0",
"@types/bun": "^1.3.3",
"@types/node": "^24.10.1",
"@types/pluralize": "^0.0.33",
"cspell": "^9.3.2",
"cspell-lib": "^9.3.2",
"eslint": "^9.39.1"
}
}
}

Check failure on line 41 in package.json

View workflow job for this annotation

GitHub Actions / Lint

Newline required at end of file but not found.
Loading
Loading