Skip to content

Commit 2f7d757

Browse files
mikemaccanaclaude
andauthored
Fix: make biome tests pass, lint code, upgrade litesvm to fix Native / Pinocchio tests. (#550)
* Fix: this repo uses biome, configure vscode to use biome, and remove unnecessary prettierrc files * Fix: this project uses pnpm, remove yarn.lock file. * Fix: 'biome check' now passes. Fix all lint errors. - Biome is the existing TS formatter / linter, however it was failing. - Upgrade to Biome V2, run biome on GitHub Actions (it's already used in a precommit hook) - Add a biome config file to match what most of the existing code uses, plus Anchor defaults - Add missing Tailwind options to check CSS files with Tailwind directives - Skip some of the 'any' tests in Anchor TS files - these will be moved to LiteSVM * Fix: add pnpm/action-setup before setup-node in Native and Pinocchio workflows packageManager field in package.json causes setup-node to look for pnpm before it is installed, failing with "Unable to locate executable file: pnpm". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Fix: upgrade litesvm from 0.8.1 to 0.11.0 to fix compilation against current Solana stable litesvm 0.8.1 failed to compile against current Solana stable because internal Solana APIs changed (ProgramCacheForTxBatch.environments field removed, TransactionError lifetime added). litesvm 0.11.0 has been updated for these API changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Fix: use 🤥 emoji for Pinocchio (lying face / growing nose) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Fix: use inline emoji instead of GitHub shortcodes in README Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a47f691 commit 2f7d757

441 files changed

Lines changed: 9216 additions & 9285 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/anchor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches:
88
- main
99
- anchor-1.0
10+
- fix-biome-errors
1011
pull_request:
1112
types: [opened, synchronize, reopened]
1213
branches:

.github/workflows/rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
branches:
1111
- main
1212
- anchor-1.0
13+
- fix-biome-errors
1314
pull_request:
1415
types: [opened, synchronize, reopened]
1516
branches:

.github/workflows/solana-native.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- main
9+
- fix-biome-errors
910
pull_request:
1011
types: [opened, synchronize, reopened]
1112
branches:
@@ -107,6 +108,7 @@ jobs:
107108
failed_projects: ${{ steps.set-failed.outputs.failed_projects }}
108109
steps:
109110
- uses: actions/checkout@v5
111+
- uses: pnpm/action-setup@v4
110112
- name: Use Node.js
111113
uses: actions/setup-node@v5
112114
with:
@@ -192,8 +194,7 @@ jobs:
192194
# Make the script executable
193195
chmod +x build_and_test.sh
194196
195-
# Install pnpm
196-
npm install --global pnpm
197+
# pnpm is already installed via pnpm/action-setup
197198
- name: Setup Solana Stable
198199
uses: heyAyushh/setup-solana@v5.9
199200
with:

.github/workflows/solana-pinocchio.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- main
9+
- fix-biome-errors
910
pull_request:
1011
types: [opened, synchronize, reopened]
1112
branches:
@@ -107,6 +108,7 @@ jobs:
107108
failed_projects: ${{ steps.set-failed.outputs.failed_projects }}
108109
steps:
109110
- uses: actions/checkout@v5
111+
- uses: pnpm/action-setup@v4
110112
- name: Use Node.js
111113
uses: actions/setup-node@v5
112114
with:
@@ -192,8 +194,7 @@ jobs:
192194
# Make the script executable
193195
chmod +x build_and_test.sh
194196
195-
# Install pnpm
196-
npm install --global pnpm
197+
# pnpm is already installed via pnpm/action-setup
197198
- name: Setup Solana Stable
198199
uses: heyAyushh/setup-solana@v5.9
199200
with:

.github/workflows/typescript.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: TypeScript
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- fix-biome-errors
8+
pull_request:
9+
types: [opened, synchronize, reopened]
10+
branches:
11+
- main
12+
13+
env:
14+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
15+
16+
jobs:
17+
biome:
18+
name: Biome check
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v5
22+
- uses: pnpm/action-setup@v4
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: pnpm
27+
# --frozen-lockfile: fail if pnpm-lock.yaml is out of date
28+
# --ignore-workspace: only install root deps, not all 94 subprojects
29+
- run: pnpm install --frozen-lockfile --ignore-workspace
30+
- run: pnpm run check

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.defaultFormatter": "biomejs.biome",
3+
"editor.formatOnSave": true
4+
}

0 commit comments

Comments
 (0)