Skip to content

Commit 6983cd2

Browse files
authored
Merge pull request #28 from mrubyedge/fix-ci-conc
Create separate projects for each workflow to ensure that tests can r…
2 parents fe8eca2 + 700fef0 commit 6983cd2

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/runn-cli-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
RUNN_SCOPES: "read:parent,run:exec"
9797
UZUMIBI_TEST_BINARY: ${{ github.workspace }}/target/release/uzumibi
9898
UZUMIBI_TEST_TMPDIR: ${{ runner.temp }}
99+
UZUMIBI_PROJECT_NAME: test-cloudflare-project-${{ github.run_id }}
99100
run: runn run new_cloudflare.yml --verbose
100101

101102
cloudflare-enable-external-test:
@@ -144,6 +145,7 @@ jobs:
144145
UZUMIBI_TEST_BINARY: ${{ github.workspace }}/target/release/uzumibi
145146
UZUMIBI_TEST_TMPDIR: ${{ runner.temp }}
146147
UZUMIBI_NEW_EXTRA_ARGS: "--features enable-external"
148+
UZUMIBI_PROJECT_NAME: test-cloudflare-project-${{ github.run_id }}
147149
run: runn run new_cloudflare.yml --verbose
148150

149151
cloudrun-test:

uzumibi-cli/tests/runn/new_cloudflare.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ vars:
55
binary: ${UZUMIBI_TEST_BINARY:-../target/release/uzumibi}
66
tmpdir: ${UZUMIBI_TEST_TMPDIR:-../tmp}
77
extra_args: ${UZUMIBI_NEW_EXTRA_ARGS:-}
8-
project_name: test-cloudflare-project
8+
project_name: ${UZUMIBI_PROJECT_NAME:-test-cloudflare-project}
99
template: cloudflare
1010
steps:
1111
build:
@@ -40,7 +40,7 @@ steps:
4040
command: cat {{ vars.tmpdir }}/{{ vars.project_name }}/wasm-app/Cargo.toml
4141
test: |
4242
current.exit_code == 0 &&
43-
current.stdout contains 'name = "test-cloudflare-project"'
43+
!(current.stdout contains '$$PROJECT_NAME$$')
4444
4545
check_app_rb:
4646
desc: Check lib/app.rb exists
@@ -92,4 +92,5 @@ steps:
9292
desc: Clean up test directory
9393
exec:
9494
command: rm -rf {{ vars.tmpdir }}/{{ vars.project_name }}
95+
dump: steps
9596
test: current.exit_code == 0

0 commit comments

Comments
 (0)