Skip to content

Commit

Permalink
test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Jun 11, 2024
1 parent 6414f2a commit fc3c0e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/typescript-lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: Cargo lint and test

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

env:
# Not needed in CI, should make things a bit faster
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
# Remove unnecessary WASM build artifacts
WASM_BUILD_CLEAN_TARGET: 1
# stripping symbols and optimizing for binary size
RUSTFLAGS: -C strip=symbols -C opt-level=s

jobs:
lint-and-test:
Expand Down Expand Up @@ -48,4 +54,4 @@ jobs:

- run: pnpm install
- run: pnpm lint
- run: pnpm test:cargo
- run: cargo test --release --features no-entrypoint -- --nocapture
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:cargo": "cargo test --features no-entrypoint -- --nocapture",
"test": "pnpm test:cargo && pnpm test:bankrun && pnpm test:validator",
"cli": "ts-node ./packages/validator-bonds-cli/src/",
"lint:cargo": "cargo fmt -- --check && cargo clippy",
"lint:cargo": "cargo fmt -- --check && cargo clippy --release",
"lint:cargo-fix": "cargo fmt --all && cargo clippy --fix --allow-staged --allow-dirty",
"lint:ts": "gts lint",
"lint:ts-fix": "gts fix",
Expand Down

0 comments on commit fc3c0e1

Please sign in to comment.