Skip to content

Commit

Permalink
chore(verifier): extract build into a separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
rimrakhimov committed Feb 6, 2025
1 parent 04d3033 commit 8790fc0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/smart-contract-verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ defaults:
working-directory: smart-contract-verifier

jobs:
build:
name: Checkout and build
uses: ./.github/workflows/t_build_tests.yml
with:
working-directory: smart-contract-verifier

test:
name: Unit, doc and integration tests
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
with:
working-directory: smart-contract-verifier

- name: Unit tests
run: RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --all-features --lib --bins -- --nocapture
if: success() || failure()
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/t_build_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Checkout and build for testing (reusable)

on:
workflow_call:
inputs:
working-directory:
required: true
type: string

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
with:
working-directory: ${{ inputs.working-directory }}

- name: Build
run: RUST_BACKTRACE=1 cargo build --locked --workspace --all-targets --all-features
working-directory: ${{ inputs.working-directory }}

0 comments on commit 8790fc0

Please sign in to comment.