fix: ci test 7

This commit is contained in:
Oleksandr Pravdyvyi 2024-11-25 11:02:57 +02:00
parent 765ad6e60b
commit b249a50a34
3 changed files with 25 additions and 75 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,6 @@
set -e
curl -L https://risczero.com/install | bash
/home/runner/.risc0/bin/rzup install
cargo test --release