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
7 changes: 6 additions & 1 deletion .github/workflows/lint-404s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ${{ github.workspace }}/node_modules
path: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/.next/cache
${{ github.workspace }}/.eslintcache
key: node-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
node-${{ runner.os }}-

- run: yarn install --frozen-lockfile
if: steps.cache.outputs.cache-hit != 'true'
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,23 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ${{ github.workspace }}/node_modules
path: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/.next/cache
${{ github.workspace }}/.eslintcache
key: node-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
node-${{ runner.os }}-

- run: yarn install --frozen-lockfile
if: steps.cache.outputs.cache-hit != 'true'

# Additional checks
- run: yarn lint:ts
- run: yarn lint:docs

# Run automatic fixes (run prettier apart from eslint to also fix mdx files)
- run: yarn lint:prettier:fix
- run: yarn lint:eslint:fix
- run: yarn lint:eslint:fix --cache

# Check (and error) for dirty working tree for forks
# Reason being we need a different token to auto commit changes and
Expand Down Expand Up @@ -69,8 +74,14 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: ${{ github.workspace }}/node_modules
path: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/.next/cache
${{ github.workspace }}/.eslintcache
key: node-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
node-${{ runner.os }}-

- run: yarn install --frozen-lockfile
if: steps.cache.outputs.cache-hit != 'true'
- name: Run Tests
Expand Down
6 changes: 0 additions & 6 deletions bin/lint-docs.ts

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"start": "next start",
"lint": "next lint",
"lint:ts": "tsc --skipLibCheck",
"lint:docs": "bin/lint-docs.ts",
"lint:eslint": "eslint \"{src,app,scripts}/**/*.{ts,tsx,js,jsx}\"",
"lint:eslint:fix": "eslint --fix \"{src,app,scripts}/**/*.{ts,tsx,js,jsx}\"",
"lint:prettier": "prettier --check \"./{src,app,scripts}/**/*.{md,mdx,ts,tsx,js,jsx,mjs}\"",
Expand Down
Loading