Skip to content

Commit ccfcfa4

Browse files
author
tilo-14
committed
Update c-token examples: refactor tests, add devnet transfer, update deps
1 parent 9e1d46d commit ccfcfa4

20 files changed

+2102
-772
lines changed

.github/workflows/rust-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
- counter/pinocchio
3131
- account-comparison
3232
- zk-id
33+
- c-token
3334
include:
35+
- example: c-token
36+
test-command: cargo test
3437
- example: basic-operations/native
3538
package: native-program-burn
3639
- example: basic-operations/native
@@ -60,8 +63,9 @@ jobs:
6063
- name: Build and test
6164
working-directory: ${{ matrix.example }}
6265
run: |
66+
TEST_CMD="${{ matrix.test-command || 'cargo test-sbf' }}"
6367
if [ -n "${{ matrix.package }}" ]; then
64-
cargo test-sbf -p ${{ matrix.package }}
68+
$TEST_CMD -p ${{ matrix.package }}
6569
else
66-
cargo test-sbf
70+
$TEST_CMD
6771
fi

0 commit comments

Comments
 (0)