Skip to content

Commit

Permalink
test: test-tube
Browse files Browse the repository at this point in the history
  • Loading branch information
whalelephant committed Dec 14, 2023
1 parent f1a38df commit 11b315c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 51 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ jobs:
override: true
components: rust-docs

- name: Add ssh key to update cw-plus/cw3-flex-multisig
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.GIT_SSH }}" > ~/.ssh/id_rsa
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa
- name: Building Documentation
run: cargo doc --no-deps

Expand Down
28 changes: 8 additions & 20 deletions .github/workflows/test_tube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- test-tube

jobs:
test:
test-tube-tests:
name: Integration tests
runs-on: ubuntu-latest
env:
Expand All @@ -29,14 +29,17 @@ jobs:
override: true

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21.1

- name: Clone libwasmv (needed for test-tube)
uses: actions/checkout@v2
with:
repository: CosmWasm/wasmvm
path: ./wasmvm
ref: v1.4.1
token: ${{ secrets.GH_TOKEN }}

- name: Install libwasmv
run: cd ./wasmvm && make build-rust && cd ../
Expand All @@ -52,23 +55,8 @@ jobs:
artifacts/
key: ${{ runner.os }}-cargo-with-artifacts-${{ hashFiles('**/Cargo.lock') }}

- name: Set latest just version
run: echo "JUST_VERSION=$(cargo search just -q | sed -n -e '/^just[[:space:]]/p' | cut -d '"' -f 2)" >> $GITHUB_ENV

- name: Get cached just
uses: actions/cache@v3
with:
path: ~/.cargo/bin/just
key: ${{ runner.os }}-just-${{ env.JUST_VERSION }}

- name: Install just
run: cargo install just || true

- name: Run download deps
run: just download-deps

- name: Run workspace optimize
run: just workspace-optimize
- name: Run build-contracts
run: make build-contracts

- name: Run Test Tube Integration Tests
run: just test-tube
run: UNAME=$(uname -p) cargo test -- test-tube
21 changes: 0 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ jobs:
cargo install grcov
rustup component add llvm-tools-preview
- name: Add ssh key to update cw-plus/cw3-flex-multisig
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.GIT_SSH }}" > ~/.ssh/id_rsa
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa
- name: Run cw-multi-test contract tests
run: cargo test -p vectis-contract-tests -- unit_tests
env:
Expand Down Expand Up @@ -74,13 +67,6 @@ jobs:
target: wasm32-unknown-unknown
override: true

- name: Add ssh key to update cw-plus/cw3-flex-multisig
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.GIT_SSH }}" > ~/.ssh/id_rsa
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa
- name: Compile WASM contract plugin registry
run: cargo wasm-plugin-registry --locked
env:
Expand Down Expand Up @@ -119,13 +105,6 @@ jobs:
override: true
components: rustfmt, clippy

- name: Add ssh key to update cw-plus/cw3-flex-multisig
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.GIT_SSH }}" > ~/.ssh/id_rsa
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa
- name: Run cargo fmt
run: cargo fmt --all -- --check

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# Cargo+Git helper file (https://github.com/rust-lang/cargo/blob/0.44.1/src/cargo/sources/git/utils.rs#L320-L327)
.cargo-ok

# act
.act-*

# Text file backups
**/*.rs.bk

Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
exclude = ["wasmvm/libwasmvm"]
members = ["packages/*", "contracts/core/*", "contracts/authenticators/*", "contracts/test-contracts/*" ]
resolver = "2"

Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
build:
- ./scripts/build.sh
- npm install --prefix ./cli
build-contracts:
- ./scripts/build.sh
schemas:
./scripts/schemas.sh
./scripts/schemas.sh
types:
npm run types:generate --prefix ./cli
upload:
npm run upload --prefix ./deploy-cli
npm run upload --prefix ./deploy-cli
deploy:
npm run deploy:hub --prefix ./deploy-cli
npm run deploy:hub --prefix ./deploy-cli
nodes-setup:
./scripts/nodes-setup.sh

0 comments on commit 11b315c

Please sign in to comment.