From b249a50a342f3cb0fa088dcf34f34fad98cbb646 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 11:02:57 +0200 Subject: [PATCH] fix: ci test 7 --- .github/workflows/ci.yml | 53 ++++++++++++++------------------------- ci_scripts/lint-ubuntu.sh | 41 ------------------------------ ci_scripts/test-ubuntu.sh | 6 +++++ 3 files changed, 25 insertions(+), 75 deletions(-) create mode 100644 ci_scripts/test-ubuntu.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 715b9857..4f0d53ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,38 +72,23 @@ jobs: run: chmod 777 ./ci_scripts/lint-ubuntu.sh && ./ci_scripts/lint-ubuntu.sh - # test: - # strategy: - # matrix: - # platform: [ ubuntu-latest ] - # runs-on: ${{ matrix.platform }} - # timeout-minutes: 60 + test: + strategy: + matrix: + platform: [ ubuntu-latest ] + runs-on: ${{ matrix.platform }} + timeout-minutes: 60 - # name: test - ${{ matrix.crate }} - ${{ matrix.platform }} - # steps: - # - name: Checkout sources - # uses: actions/checkout@v3 - # - name: Install stable toolchain - # uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # toolchain: nightly - # override: true - # - uses: Swatinem/rust-cache@v2 - # - name: install risc0 - # if: success() || failure() - # run: | - # curl -L https://risczero.com/install | bash - # - name: install risc0 step 2 - # if: success() || failure() - # run: | - # source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc - # - name: test mempool - # if: success() || failure() - # run: cargo test -p mempool - # - name: test storage - # if: success() || failure() - # run: cargo test -p storage - # - name: test zkvm - # if: success() || failure() - # run: cargo test -p zkvm + name: test - ${{ matrix.crate }} - ${{ matrix.platform }} + steps: + - name: Checkout sources + uses: actions/checkout@v3 + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + - name: test ubuntu-latest + if: success() || failure() + run: chmod 777 ./ci_scripts/test-ubuntu.sh && ./ci_scripts/test-ubuntu.sh diff --git a/ci_scripts/lint-ubuntu.sh b/ci_scripts/lint-ubuntu.sh index 92750653..6f71b24e 100644 --- a/ci_scripts/lint-ubuntu.sh +++ b/ci_scripts/lint-ubuntu.sh @@ -5,45 +5,4 @@ curl -L https://risczero.com/install | bash cargo install taplo-cli --locked cargo fmt -- --check - -cd accounts -cargo clippy --release -- -D warnings -cd .. - -cd consensus -cargo clippy --release -- -D warnings -cd .. - -cd mempool -cargo clippy --release -- -D warnings -cd .. - -cd networking -cargo clippy --release -- -D warnings -cd .. - -cd rpc_primitives -cargo clippy --release -- -D warnings -cd .. - -cd sequencer_core -cargo clippy --release -- -D warnings -cd .. - -cd sequencer_rpc -cargo clippy --release -- -D warnings -cd .. - -cd sequencer_runner -cargo clippy --release -- -D warnings -cd .. - -cd storage -cargo clippy --release -- -D warnings -cd .. - -cd utxo -cargo clippy --release -- -D warnings -cd .. - taplo fmt --check \ No newline at end of file diff --git a/ci_scripts/test-ubuntu.sh b/ci_scripts/test-ubuntu.sh new file mode 100644 index 00000000..53fc7bc7 --- /dev/null +++ b/ci_scripts/test-ubuntu.sh @@ -0,0 +1,6 @@ +set -e + +curl -L https://risczero.com/install | bash +/home/runner/.risc0/bin/rzup install + +cargo test --release \ No newline at end of file