Skip to content

Commit

Permalink
Added end to end workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive committed Mar 20, 2024
1 parent c7791d0 commit e26d69c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 25 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/end.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Runs end-to-end testing related jobs.

name: end-to-end

on:
push:
branches: [main, next]
pull_request:
types: [opened, reopened, synchronize]

jobs:
end-to-end:
name: end-to-end tests stable on ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Install cargo make
run: cargo install cargo-make
- name: cargo make - docker-build-node
run: cargo make docker-build-node
- name: cargo make - docker-run-node
run: cargo make docker-run-node
- name: cargo make - test-end-to-end
run: cargo make test-end-to-end
34 changes: 19 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,22 @@ jobs:
- name: cargo make - test
run: cargo make test

end-to-end:
name: end-to-end tests stable on ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Install cargo make
run: cargo install cargo-make
- name: cargo make - test-end-to-end
run: cargo make test-end-to-end
# end-to-end:
# name: end-to-end tests stable on ubuntu-latest
# runs-on: ubuntu-latest
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4
# - name: Install Rust
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# override: true
# - name: Install cargo make
# run: cargo install cargo-make
# - name: cargo make - docker-build-node
# run: cargo make docker-build-node
# - name: cargo make - docker-run-node
# run: cargo make docker-run-node
# - name: cargo make - test-end-to-end
# run: cargo make test-end-to-end
10 changes: 0 additions & 10 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,7 @@ args = ["test", "--all-features", "--workspace", "--", "--nocapture"]
[tasks.test-end-to-end]
workspace = false
script = '''
cargo install --features testing --path node
miden-node make-genesis --inputs-path node/genesis.toml --force
miden-node start --config node/miden-node.toml &
sleep 10
./scripts/test-end-to-end.sh
pkill -f miden-node
'''

# docker
Expand Down

0 comments on commit e26d69c

Please sign in to comment.