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
19 changes: 19 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"permissions": {
"allow": [
"Bash(find:*)",
"Bash(git:*)",
"Bash(just:*)",
"Bash(ls:*)",
"Bash(mkdir:*)",
"Bash(ni:*)",
"mcp__http-server__*",
"WebFetch(domain:anthropic.com)",
"WebFetch(domain:github.com)",
"WebFetch(domain:npmjs.com)",
"WebFetch(domain:raw.githubusercontent.com)",
"WebFetch(domain:sablier.com)"
],
"deny": ["Bash(git checkout:*)", "Bash(git reset:*)", "Bash(git unstage:*)", "Bash(rm -rf:*)"]
}
}
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
trim_trailing_whitespace = true

[justfile]
indent_size = 4
20 changes: 0 additions & 20 deletions .eslintignore

This file was deleted.

31 changes: 0 additions & 31 deletions .eslintrc.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/build.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "CI"

concurrency:
cancel-in-progress: true
group: ${{github.workflow}}-${{github.ref}}

on:
pull_request:
push:
branches: ["main"]

jobs:
ci:
runs-on: "macos-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"

- name: "Set up Sablier devkit and install Node.js dependencies"
uses: "sablier-labs/devkit/actions/setup@main"
with:
package-manager: "bun"

- name: "Set up Rust, Solana, and Anchor"
uses: "sablier-labs/gha-utils/.github/actions/anchor-toolchain@main"
with:
anchor-version: "0.31.1"
rust-version: "nightly"
solana-version: "2.1.21"

- name: "Cache Anchor build artifacts"
id: "cache-build"
uses: "sablier-labs/gha-utils/.github/actions/solana-cache@main"
with:
cache-path: target

- name: "Build the programs"
if: steps.cache-build.outputs.cache-status != 'primary'
run: "just build"

- name: "Run the Rust code checks"
if: steps.cache-build.outputs.cache-status != 'primary'
run: "just rust-check"

- name: "Run the other code checks"
run: | # shell
just prettier-check
just biome-check
just tsc-check

- name: "Run the tests"
if: steps.cache-build.outputs.cache-status != 'primary'
run: "just test-lite"

- name: "Add summary"
run: | # shell
echo "## CI result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
84 changes: 0 additions & 84 deletions .github/workflows/test.yml.disabled

This file was deleted.

14 changes: 8 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# Anchor
.anchor
docker-target
**/*.rs.bk
target
test-ledger

# Misc
*.env
.DS_Store
**/*.rs.bk

# Node.js
.npm
Expand All @@ -16,4 +12,10 @@ bun.lockb
node_modules
package-lock.json
pnpm-lock.yaml
yarn.lock
yarn.lock

# Misc
repomix
*.env
*.local.json
.DS_Store
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
8 changes: 8 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @type {import("lint-staged").Configuration}
*/
module.exports = {
"*.{js,json,jsonc,ts}": "na biome check --no-errors-on-unmatched --write",
"*.{js,ts}": "na biome lint --no-errors-on-unmatched --unsafe --write --only correctness/noUnusedImports",
"*.{md,yml}": "na prettier --cache --write",
};
13 changes: 1 addition & 12 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
# directories
.anchor
build
dist
node_modules
repomix
target
test-ledger

# files
*.env
*.log
*.tsbuildinfo
.DS_Store
.pnp.*
bun.lock
bun.lockb
npm-debug.log
package-lock.json
pnpm-lock.yaml
yarn.lock
Comment thread
andreivladbrg marked this conversation as resolved.
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const baseConfig = require("@sablier/devkit/prettier");

/**
* @see https://prettier.io/docs/configuration
* @type {import("prettier").Config}
*/
const config = baseConfig;

module.exports = config;
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"amasfe.even-better-toml",
"biomejs.biome",
"esbenp.prettier-vscode",
"nefrob.vscode-just-syntax",
"stackbreak.comment-divider",
"rust-lang.rust-analyzer"
]
}
Loading
Loading