Skip to content

Commit 2925e88

Browse files
committed
Merge master into exit code fix branch
Resolved conflicts by: - Keeping new deploy command message feature from master - Applying exit code fix to helpers/command.rs - Adding ? operator to process_command_result call in declare All exit codes verified working correctly after merge.
2 parents 55c0db2 + 74a8856 commit 2925e88

File tree

59 files changed

+2304
-505
lines changed

Some content is hidden

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

59 files changed

+2304
-505
lines changed

.github/workflows/automate-stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Run Stale Bot
1818
id: stale
19-
uses: actions/stale@v9
19+
uses: actions/stale@v10
2020
with:
2121
# General settings
2222
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}

.github/workflows/ci.yml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
3939
- name: Build and archive tests
40-
run: cargo nextest archive --cargo-profile ci -p forge --features skip_plugin_checks --archive-file 'nextest-archive-${{ runner.os }}.tar.zst'
40+
run: cargo nextest archive --cargo-profile ci -p forge --archive-file 'nextest-archive-${{ runner.os }}.tar.zst'
4141
- name: Upload archive to workflow
4242
uses: actions/upload-artifact@v4
4343
with:
@@ -126,9 +126,9 @@ jobs:
126126
- uses: dtolnay/rust-toolchain@stable
127127
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
128128
- uses: software-mansion/setup-universal-sierra-compiler@v1
129+
# No setup scarb action is used because we want to install multiple versions of scarb through asdf
129130
- uses: asdf-vm/actions/install@1902764435ca0dd2f3388eea723a4f92a4eb8302
130-
- run: cargo test --profile ci --package forge e2e::plugin_versions
131-
- run: cargo test --profile ci --package forge e2e::plugin_diagnostics
131+
- run: cargo test --profile ci --package forge --features test_for_multiple_scarb_versions e2e::plugin_diagnostic
132132

133133
test-requirements-check-special-conditions:
134134
name: Test requirements check special conditions
@@ -147,20 +147,6 @@ jobs:
147147

148148
- run: cargo test --profile ci --package forge --features scarb_2_10_0 --test main e2e::requirements::test_warning_on_scarb_version_below_recommended
149149

150-
# TODO(#3212): Closures in Cairo are fully supported since version 2.11
151-
test-interact-with-state:
152-
name: Test interact with state
153-
runs-on: ubuntu-latest
154-
steps:
155-
- uses: actions/checkout@v5
156-
- uses: dtolnay/rust-toolchain@stable
157-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
158-
- uses: software-mansion/setup-scarb@v1
159-
- uses: software-mansion/setup-universal-sierra-compiler@v1
160-
161-
- run: cargo test --profile ci --package forge --features interact-with-state --test main integration::interact_with_state
162-
- run: cargo test --profile ci --package forge --features interact-with-state --test main e2e::running::test_interact_with_state
163-
164150
test-forge-runner:
165151
name: Test Forge Runner
166152
runs-on: ubuntu-latest
@@ -192,18 +178,6 @@ jobs:
192178
- name: Run Data Transformer tests
193179
run: cargo test --profile ci -p data-transformer
194180

195-
test-forge-debugging:
196-
name: Test Forge Debugging
197-
runs-on: ubuntu-latest
198-
steps:
199-
- uses: actions/checkout@v5
200-
- uses: dtolnay/rust-toolchain@stable
201-
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
202-
- uses: software-mansion/setup-scarb@v1
203-
- uses: software-mansion/setup-universal-sierra-compiler@58146c4184fa6ec5e8aaf02309ab85e35f782ed0 # v1.0.0
204-
- name: Run Forge Debugging tests
205-
run: cargo test --profile ci -p forge --features debugging --test main e2e::debugging
206-
207181
test-forge-scarb-plugin:
208182
name: Test Forge Scarb Plugin
209183
runs-on: ubuntu-latest

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
toolchain: stable
3838
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
3939
- uses: actions/checkout@v5
40-
- uses: actions/setup-node@v4
40+
- uses: actions/setup-node@v5
4141
- name: Install sitemap CLI
4242
run: |
4343
npm i -g static-sitemap-cli

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v5
2222

23-
- uses: actions/setup-node@v4
23+
- uses: actions/setup-node@v5
2424
with:
2525
cache: 'npm'
2626
cache-dependency-path: scripts/package-lock.json

.github/workflows/scheduled.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- uses: software-mansion/setup-universal-sierra-compiler@v1
5050

5151
- run: cargo test --profile ci --lib -p forge
52-
- run: cargo test --profile ci -p forge integration --features assert_non_exact_gas
52+
- run: cargo test --profile ci -p forge integration --features non_exact_gas_assertions,skip_test_for_scarb_since_2_11
5353

5454
test-forge-e2e:
5555
if: github.event.repository.fork == false
@@ -91,7 +91,7 @@ jobs:
9191
run: |
9292
curl -L https://raw.githubusercontent.com/software-mansion/cairo-coverage/main/scripts/install.sh | sh
9393
94-
- run: cargo test --profile ci -p forge --features skip_plugin_checks e2e
94+
- run: cargo test --profile ci -p forge --features skip_test_for_only_latest_scarb,skip_test_for_scarb_since_2_11 e2e
9595

9696
test-cast:
9797
if: github.event.repository.fork == false

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
#### Added
1919

2020
- Debug logging for `sncast` commands that can be enabled by setting `CAST_LOG` env variable.
21+
- `sncast declare` command now outputs a ready-to-use deployment command after successful declaration.
22+
- Possibility to use [`starknet-devnet`](https://github.com/0xSpaceShard/starknet-devnet) predeployed accounts directly in `sncast` without needing to import them. They are available under specific names - `devnet-1`, `devnet-2`, ..., `devnet-<N>`. Read more [here](https://foundry-rs.github.io/starknet-foundry/starknet/integration_with_devnet.html#predeployed-accounts)
2123

2224
## [0.50.0] - 2025-09-29
2325

0 commit comments

Comments
 (0)