diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 38b70093..34235bac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,14 +22,17 @@ jobs: rename-to: sui-archive cache: enable extension: '.tgz' - # - run: 'which sui' + # The code below is unpacking the .tgz because the action used above does + # not recognize the extension. The PR to the action repo is open and once + # it's in (and if) we'll be able to remove this. - run: 'ls /opt/hostedtoolcache/' - name: Unpack the archive (.tgz is not supported currently) run: 'tar -xvzf /opt/hostedtoolcache/MystenLabs/sui/latest/ubuntu-x64/sui-archive' - name: Move binaries to $PATH run: mv sui* /opt/hostedtoolcache/MystenLabs/sui/latest/ubuntu-x64 - run: chmod 0755 /opt/hostedtoolcache/MystenLabs/sui/latest/ubuntu-x64/sui - - run: 'sui --help' + + # Run the tests in every directory using the latest mainnet binary - run: 'sui move test --path packages/samples' - run: 'sui move test --path packages/reference' - run: 'sui move test --path packages/todo_list' diff --git a/packages/reference/sources/abilities.move b/packages/reference/sources/abilities.move index 7038c041..ce3b407b 100644 --- a/packages/reference/sources/abilities.move +++ b/packages/reference/sources/abilities.move @@ -1,6 +1,7 @@ // Copyright (c) Mysten Labs, Inc. // SPDX-License-Identifier: Apache-2.0 +#[allow(unused_field)] module ref::abilities { // ANCHOR: annotating_structs @@ -10,7 +11,7 @@ public struct MyVec(vector) has copy, drop, store; // ANCHOR_END: annotating_structs // ANCHOR: conditional_abilities -public struct Cup has copy, drop, store, key { item: T } +// public struct Cup has copy, drop, store, key { item: T } // ANCHOR_END: conditional_abilities }