Skip to content

Commit 448e926

Browse files
authored
CI: Add generic test file for publish job (#79)
#### Problem The publish job failed because it uses a `test.mjs` file which isn't in the repo. #### Summary of changes Add the file.
1 parent c0f5796 commit 448e926

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/rust/test.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env zx
2+
import 'zx/globals';
3+
import { cliArguments, workingDirectory } from '../utils.mjs';
4+
5+
const [folder, ...args] = cliArguments();
6+
const sbfOutDir = path.join(workingDirectory, 'target', 'deploy');
7+
const manifestPath = path.join(workingDirectory, folder, 'Cargo.toml');
8+
await $`RUST_LOG=error SBF_OUT_DIR=${sbfOutDir} cargo test --manifest-path ${manifestPath} ${args}`;

0 commit comments

Comments
 (0)