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
2 changes: 2 additions & 0 deletions .github/workflows/runn-cli-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
RUNN_SCOPES: "read:parent,run:exec"
UZUMIBI_TEST_BINARY: ${{ github.workspace }}/target/release/uzumibi
UZUMIBI_TEST_TMPDIR: ${{ runner.temp }}
UZUMIBI_PROJECT_NAME: test-cloudflare-project-${{ github.run_id }}
run: runn run new_cloudflare.yml --verbose

cloudflare-enable-external-test:
Expand Down Expand Up @@ -144,6 +145,7 @@ jobs:
UZUMIBI_TEST_BINARY: ${{ github.workspace }}/target/release/uzumibi
UZUMIBI_TEST_TMPDIR: ${{ runner.temp }}
UZUMIBI_NEW_EXTRA_ARGS: "--features enable-external"
UZUMIBI_PROJECT_NAME: test-cloudflare-project-${{ github.run_id }}
run: runn run new_cloudflare.yml --verbose

cloudrun-test:
Expand Down
5 changes: 3 additions & 2 deletions uzumibi-cli/tests/runn/new_cloudflare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vars:
binary: ${UZUMIBI_TEST_BINARY:-../target/release/uzumibi}
tmpdir: ${UZUMIBI_TEST_TMPDIR:-../tmp}
extra_args: ${UZUMIBI_NEW_EXTRA_ARGS:-}
project_name: test-cloudflare-project
project_name: ${UZUMIBI_PROJECT_NAME:-test-cloudflare-project}
template: cloudflare
steps:
build:
Expand Down Expand Up @@ -40,7 +40,7 @@ steps:
command: cat {{ vars.tmpdir }}/{{ vars.project_name }}/wasm-app/Cargo.toml
test: |
current.exit_code == 0 &&
current.stdout contains 'name = "test-cloudflare-project"'
!(current.stdout contains '$$PROJECT_NAME$$')

check_app_rb:
desc: Check lib/app.rb exists
Expand Down Expand Up @@ -92,4 +92,5 @@ steps:
desc: Clean up test directory
exec:
command: rm -rf {{ vars.tmpdir }}/{{ vars.project_name }}
dump: steps
test: current.exit_code == 0