diff --git a/.github/actions/diffs/action.yml b/.github/actions/diffs/action.yml index 4a3c456386969..82ece52c398f3 100644 --- a/.github/actions/diffs/action.yml +++ b/.github/actions/diffs/action.yml @@ -11,8 +11,8 @@ outputs: description: True when changes happened to the Move code value: "${{ steps.diff.outputs.isMove }}" isReleaseNotesEligible: - description: True when changes happened in Release Notes eligible paths - value: "${{ steps.diff.outputs.isReleaseNotesEligible }}" + description: True when changes happened in Release Notes eligible paths + value: "${{ steps.diff.outputs.isReleaseNotesEligible }}" runs: using: composite @@ -42,6 +42,7 @@ runs: - 'crates/sui-framework-tests/**' - 'crates/sui_move/**' - 'Cargo.toml' + - 'examples/**' - 'sui_programmability/**' isReleaseNotesEligible: - 'crates/**' diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e9797ef108bca..7ebca9d55bb57 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -221,6 +221,22 @@ jobs: - name: check new tests for flakiness run: | scripts/simtest/stress-new-tests.sh + + # This job ensures that Move unit tests are run if there are changes + # to Move code but not Rust code (If there are Rust changes, they + # will be run as part of a larger test suite). + move-test: + needs: diff + if: needs.diff.outputs.isRust == 'false' && needs.diff.outputs.isMove == 'true' + timeout-mins: 10 + runs-on: [ubuntu-ghcloud] + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/install-action@nextest + - name: Run move tests + run: | + cargo nextest run -p sui-framework-tests -- unit_tests:: + # # Disabled # rosetta-validation: # needs: diff