Skip to content

Commit

Permalink
[CI] Update the download action to latest (#66)
Browse files Browse the repository at this point in the history
* use the updated CI for testing

* pass lint
  • Loading branch information
damirka authored May 21, 2024
1 parent 9850ccf commit 362bc11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,15 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Download Sui
uses: jaxxstorm/action-install-gh-release@v1.10.0
uses: jaxxstorm/action-install-gh-release@v1.12.0
with:
repo: MystenLabs/sui
platform: ubuntu
rename-to: sui-archive
version: mainnet
cache: enable
extension: '.tgz'
# 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 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'
- run: 'sui move test --path packages/hello_world'
- run: sui move test --path packages/samples
- run: sui move test --path packages/reference
- run: sui move test --path packages/todo_list
- run: sui move test --path packages/hello_world
4 changes: 2 additions & 2 deletions packages/todo_list/tests/todo_list_tests.move
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ module todo_list::todo_list_tests {
#[test_only]
module todo_list::todo_list_tests {
// uncomment this line to import the module
use todo_list::todo_list;
// use todo_list::todo_list;

const ENotImplemented: u64 = 0;
// const ENotImplemented: u64 = 0;

// #[test]
// fun test_todo() {
Expand Down

0 comments on commit 362bc11

Please sign in to comment.