fix: ci test 3

This commit is contained in:
Oleksandr Pravdyvyi 2024-11-25 07:49:30 +02:00
parent 3991086c34
commit ecdb8c4c68

View File

@ -17,7 +17,8 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
platform: [ ubuntu-latest, macos-latest ] # platform: [ ubuntu-latest, macos-latest ]
platform: [ ubuntu-latest ]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
timeout-minutes: 60 timeout-minutes: 60
@ -30,84 +31,84 @@ jobs:
profile: minimal profile: minimal
toolchain: nightly toolchain: nightly
override: true override: true
- name: build ubuntu test - name: build - ${{ matrix.platform }} test
if: success() || failure() if: success() || failure()
run: chmod 777 ./ci_scripts/build-ubuntu.sh && ./ci_scripts/build-ubuntu.sh run: chmod 777 ./ci_scripts/build-ubuntu.sh && ./ci_scripts/build-ubuntu.sh
lint: # lint:
strategy: # strategy:
matrix: # matrix:
platform: [ ubuntu-latest ] # platform: [ ubuntu-latest ]
runs-on: ${{ matrix.platform }} # runs-on: ${{ matrix.platform }}
timeout-minutes: 60 # timeout-minutes: 60
name: lint - ${{ matrix.crate }} - ${{ matrix.platform }} # name: lint - ${{ matrix.crate }} - ${{ matrix.platform }}
steps: # steps:
- name: Checkout sources # - name: Checkout sources
uses: actions/checkout@v3 # uses: actions/checkout@v3
- name: Install stable toolchain # - name: Install stable toolchain
uses: actions-rs/toolchain@v1 # uses: actions-rs/toolchain@v1
with: # with:
profile: minimal # profile: minimal
toolchain: nightly # toolchain: nightly
override: true # override: true
components: rustfmt, clippy # components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2 # - uses: Swatinem/rust-cache@v2
- name: cargo fmt # - name: cargo fmt
if: success() || failure() # if: success() || failure()
run: cargo fmt -- --check # run: cargo fmt -- --check
- name: cargo clippy # - name: cargo clippy
if: success() || failure() # if: success() || failure()
run: | # run: |
cargo clippy --release -- -D warnings # cargo clippy --release -- -D warnings
- name: install risc0 # - name: install risc0
if: success() || failure() # if: success() || failure()
run: | # run: |
curl -L https://risczero.com/install | bash # curl -L https://risczero.com/install | bash
- name: install risc0 step 2 # - name: install risc0 step 2
if: success() || failure() # if: success() || failure()
run: | # run: |
source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc # source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc
- name: install taplo # - name: install taplo
if: success() || failure() # if: success() || failure()
run: | # run: |
cargo install taplo-cli --locked # cargo install taplo-cli --locked
- name: taplo fmt # - name: taplo fmt
if: success() || failure() # if: success() || failure()
run: | # run: |
taplo fmt --check # taplo fmt --check
test: # test:
strategy: # strategy:
matrix: # matrix:
platform: [ ubuntu-latest ] # platform: [ ubuntu-latest ]
runs-on: ${{ matrix.platform }} # runs-on: ${{ matrix.platform }}
timeout-minutes: 60 # timeout-minutes: 60
name: test - ${{ matrix.crate }} - ${{ matrix.platform }} # name: test - ${{ matrix.crate }} - ${{ matrix.platform }}
steps: # steps:
- name: Checkout sources # - name: Checkout sources
uses: actions/checkout@v3 # uses: actions/checkout@v3
- name: Install stable toolchain # - name: Install stable toolchain
uses: actions-rs/toolchain@v1 # uses: actions-rs/toolchain@v1
with: # with:
profile: minimal # profile: minimal
toolchain: nightly # toolchain: nightly
override: true # override: true
- uses: Swatinem/rust-cache@v2 # - uses: Swatinem/rust-cache@v2
- name: install risc0 # - name: install risc0
if: success() || failure() # if: success() || failure()
run: | # run: |
curl -L https://risczero.com/install | bash # curl -L https://risczero.com/install | bash
- name: install risc0 step 2 # - name: install risc0 step 2
if: success() || failure() # if: success() || failure()
run: | # run: |
source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc # source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc
- name: test mempool # - name: test mempool
if: success() || failure() # if: success() || failure()
run: cargo test -p mempool # run: cargo test -p mempool
- name: test storage # - name: test storage
if: success() || failure() # if: success() || failure()
run: cargo test -p storage # run: cargo test -p storage
- name: test zkvm # - name: test zkvm
if: success() || failure() # if: success() || failure()
run: cargo test -p zkvm # run: cargo test -p zkvm