Browse Source

Merge pull request #55 from comit-network/optimize-ci

verify-transactions
Thomas Eizinger 3 years ago
committed by GitHub
parent
commit
be246a8235
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      .github/workflows/ci.yml

14
.github/workflows/ci.yml

@ -28,7 +28,7 @@ jobs:
- uses: Swatinem/rust-cache@v1.3.0
- run: cargo clippy --workspace --all-targets -- -D warnings
yarn:
build_frontend:
defaults:
run:
working-directory: frontend
@ -43,7 +43,7 @@ jobs:
- run: yarn run eslint
- run: yarn build
cargo:
test_daemons:
strategy:
matrix:
target: [ x86_64-unknown-linux-gnu, x86_64-apple-darwin ]
@ -62,12 +62,12 @@ jobs:
override: true
toolchain: stable
- uses: Swatinem/rust-cache@v1.3.0
- run: cargo test --workspace --all-features
- run: cargo build --target=${{ matrix.target }} --release --bin maker --bin taker
- name: Smoke test ${{ matrix.target }} release binary
- run: cargo build --all-targets --all-features
- run: cargo test --workspace
- name: Smoke test ${{ matrix.target }} binary
run: |
target/${{ matrix.target }}/release/maker &
target/debug/maker &
sleep 5s # Wait for maker to start
target/${{ matrix.target }}/release/taker &
target/debug/taker &
sleep 5s # Wait for taker to start
curl --fail http://localhost:8000/alive

Loading…
Cancel
Save