-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more CLI related PRs (#1042)
* Feat!(CLI): remove sandbox (#997) * feat!: remove run_in_sandbox * fix: reorganize tests that rely on network and ignore outside of go test * fix: use feature instead of cfg so that cargo test --list can find tests * fix: move common tests to single functions to skip setup time * feat!: skip wasm in invoke * fix: fully remove all sandbox related types and args * fix: clippy --all (#1013) * fix: clippy and git-hooks * fix: split CLI tests and normal go tests so they can run concurrently * fix(CLI): fund command now can accept a public strkey (#1020) fixes #1014 Co-authored-by: Tsachi Herman <[email protected]> --------- Co-authored-by: Tsachi Herman <[email protected]>
- Loading branch information
1 parent
3bde0b5
commit 3fcab5b
Showing
45 changed files
with
1,149 additions
and
2,590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: 'Set up integration tests' | ||
description: 'Set up Go & Rust, build artifacts, work around cache issues and Ubuntu quirks' | ||
inputs: | ||
go-version: | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: ./.github/actions/setup-go | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- uses: stellar/actions/rust-cache@main | ||
- name: Build soroban contract fixtures | ||
shell: bash | ||
run: | | ||
rustup update | ||
rustup target add wasm32-unknown-unknown | ||
make build_rust | ||
make build-test-wasms | ||
- name: Install Captive Core | ||
shell: bash | ||
run: | | ||
# Workaround for https://github.com/actions/virtual-environments/issues/5245, | ||
# libc++1-8 won't be installed if another version is installed (but apt won't give you a helpful | ||
# message about why the installation fails) | ||
sudo apt-get remove -y libc++1-10 libc++abi1-10 || true | ||
sudo wget -qO - https://apt.stellar.org/SDF.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true sudo apt-key add - | ||
sudo bash -c 'echo "deb https://apt.stellar.org focal unstable" > /etc/apt/sources.list.d/SDF-unstable.list' | ||
sudo apt-get update && sudo apt-get install -y stellar-core="$PROTOCOL_20_CORE_DEBIAN_PKG_VERSION" | ||
echo "Using stellar core version $(stellar-core version)" | ||
# Docker-compose's remote contexts on Ubuntu 20 started failing with an OpenSSL versioning error. | ||
# See https://stackoverflow.com/questions/66579446/error-executing-docker-compose-building-webserver-unable-to-prepare-context-un | ||
- name: Work around Docker Compose problem | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y ca-certificates curl gnupg | ||
# Install docker apt repo | ||
sudo install -m 0755 -d /etc/apt/keyrings | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
sudo chmod a+r /etc/apt/keyrings/docker.gpg | ||
echo \ | ||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | ||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ | ||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
# Install docker-compose v2 from apt repo | ||
sudo apt-get update | ||
sudo apt-get remove -y moby-compose | ||
sudo apt-get install -y docker-compose-plugin | ||
echo "Docker Compose Version:" | ||
docker-compose version | ||
- name: Build libpreflight | ||
shell: bash | ||
run: make build-libpreflight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.