Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-aranha-cw committed May 23, 2024
1 parent 123ae63 commit 9e03646
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,31 @@ on:
- 'Cargo.toml'

jobs:
e2e-stratus:
e2e-automine-stratus:
name: E2E Stratus in-memory
uses: ./.github/workflows/_setup-e2e.yml
with:
justfile_recipe: 'e2e-stratus'
justfile_recipe: 'e2e-stratus automine'

concurrency:
group: ${{ github.workflow }}-inmemory-${{ github.ref || github.run_id }}
cancel-in-progress: true

e2e-stratus-postgres:
e2e-automine-stratus-postgres:
name: E2E Stratus Postgres
uses: ./.github/workflows/_setup-e2e.yml
with:
justfile_recipe: 'e2e-stratus-postgres'
justfile_recipe: 'e2e-stratus-postgres automine'

concurrency:
group: ${{ github.workflow }}-postgres-${{ github.ref || github.run_id }}
cancel-in-progress: true

e2e-stratus-rocks:
e2e-automine-stratus-rocks:
name: E2E Stratus Rocks
uses: ./.github/workflows/_setup-e2e.yml
with:
justfile_recipe: 'e2e-stratus-rocks'
justfile_recipe: 'e2e-stratus-rocks automine'

concurrency:
group: ${{ github.workflow }}-rocks-${{ github.ref || github.run_id }}
Expand Down
16 changes: 8 additions & 8 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ e2e network="stratus" block-mode="automine" test="":
fi

# E2E: Starts and execute Hardhat tests in Hardhat
e2e-hardhat test="":
e2e-hardhat block-mode="automine" test="":
#!/bin/bash
if [ -d e2e ]; then
cd e2e
Expand All @@ -189,13 +189,13 @@ e2e-hardhat test="":
wait-service --tcp localhost:8545 -- echo

echo "-> Running E2E tests"
just e2e hardhat automine {{test}}
just e2e hardhat {{block-mode}} {{test}}

echo "-> Killing Hardhat"
killport 8545

# E2E: Starts and execute Hardhat tests in Stratus
e2e-stratus test="":
e2e-stratus block-mode="automine" test="":
#!/bin/bash
if [ -d e2e ]; then
cd e2e
Expand All @@ -209,15 +209,15 @@ e2e-stratus test="":
wait-service --tcp 0.0.0.0:3000 -t {{ wait_service_timeout }} -- echo

echo "-> Running E2E tests"
just e2e stratus automine {{test}}
just e2e stratus {{block-mode}} {{test}}
result_code=$?

echo "-> Killing Stratus"
killport 3000
exit $result_code

# E2E: Starts and execute Hardhat tests in Stratus
e2e-stratus-rocks test="":
e2e-stratus-rocks block-mode="automine" test="":
#!/bin/bash
if [ -d e2e ]; then
cd e2e
Expand All @@ -231,15 +231,15 @@ e2e-stratus-rocks test="":
wait-service --tcp 0.0.0.0:3000 -t {{ wait_service_timeout }} -- echo

echo "-> Running E2E tests"
just e2e stratus automine {{test}}
just e2e stratus {{block-mode}} {{test}}
result_code=$?

echo "-> Killing Stratus"
killport 3000
exit $result_code

# E2E: Starts and execute Hardhat tests in Stratus
e2e-stratus-postgres test="":
e2e-stratus-postgres block-mode="automine" test="":
#!/bin/bash
if [ -d e2e ]; then
cd e2e
Expand All @@ -260,7 +260,7 @@ e2e-stratus-postgres test="":
wait-service --tcp 0.0.0.0:3000 -t {{ wait_service_timeout }} -- echo

echo "-> Running E2E tests"
just e2e stratus automine {{test}}
just e2e stratus {{block-mode}} {{test}}
result_code=$?

echo "-> Killing Stratus"
Expand Down

0 comments on commit 9e03646

Please sign in to comment.