Skip to content

Commit

Permalink
Merge pull request #42 from multiversx/fix-interactors-workflow
Browse files Browse the repository at this point in the history
conditional interactors workflow
  • Loading branch information
BiancaIalangi authored Jan 31, 2025
2 parents a592d4f + b967f1f commit 3536a9a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ on:
default: true
required: false
type: boolean
enable-interactor-tests:
description: 'Enable interactor tests'
default: false
required: false
type: boolean
coverage-args:
description: 'sc-meta test-coverage arguments'
default: '--output ./coverage.md'
Expand Down Expand Up @@ -96,14 +101,14 @@ jobs:
RUSTFLAGS: ""
run: cargo test --features multiversx-sc-scenario/run-go-tests

- name: Generate the contract report via sc-meta
- name: Generate the contract report
if: ${{ inputs.enable-contracts-size-report }}
env:
RUSTFLAGS: ""
run: |
sc-meta report compile --path . --output report.json
- name: Upload the report json from sc-meta
- name: Upload the report json
if: ${{ inputs.enable-contracts-size-report }}
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -165,6 +170,7 @@ jobs:
interactor_tests:
name: Interactor tests
runs-on: ubuntu-latest
if: inputs.enable-interactor-tests
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -211,7 +217,7 @@ jobs:
continue-on-error: false
env:
RUSTFLAGS: ""
run: sc-meta cs start & sc-meta test -c
run: sc-meta cs start & cargo test --features chain-simulator-tests

- name: Stop the chain simulator
env:
Expand Down

0 comments on commit 3536a9a

Please sign in to comment.