Skip to content

Commit

Permalink
Merge branch 'release/0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Luijken committed Jul 19, 2024
2 parents 01efebb + 61739d3 commit a958848
Show file tree
Hide file tree
Showing 78 changed files with 9,788 additions and 3,039 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/cargo-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: crusty-pie/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-musl
targets: x86_64-unknown-linux-musl
override: true
components: llvm-tools-preview
- name: Download grcov
run: |
mkdir -p "${HOME}/.local/bin"
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.10/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- uses: actions-rs/cargo@v1
name: cargo update
with:
command: update
- name: cargo update
run: cargo update --manifest-path=stellar_rust_sdk/Cargo.toml
- name: cargo test
run: |
mkdir -p ./target/coverage
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test
grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o ./target/coverage/tests.lcov
mkdir -p ./coverage
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test --manifest-path=stellar_rust_sdk/Cargo.toml
grcov . --binary-path ./stellar_rust_sdk/target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o ./coverage/tests.lcov
- name: Check test coverage
uses: terencetcf/github-actions-lcov-minimum-coverage-checker@v1
uses: tluijken/code-coverage-threshold@v1
with:
coverage-file: ./target/coverage/tests.lcov
coverage-file: ./coverage/tests.lcov
minimum-coverage: 90

publish_to_crates_io:
Expand All @@ -57,7 +55,7 @@ jobs:
with:
useConfigFile: true
- name: "Overwrite version numbers"
run: awk 'NR==1,/version = "0.1.0"/{sub(/version = "0.1.0"/, "version = \"'$GitVersion_SemVer'\"")} 1' Cargo.toml > Cargo.tmp && mv Cargo.tmp Cargo.toml
run: awk 'NR==1,/version = "0.1.0"/{sub(/version = "0.1.0"/, "version = \"'$GitVersion_SemVer'\"")} 1' stellar_rust_sdk/Cargo.toml > stellar_rust_sdk/Cargo.tmp && mv stellar_rust_sdk/Cargo.tmp stellar_rust_sdk/Cargo.toml
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -66,3 +64,4 @@ jobs:
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
args: --allow-dirty
path: stellar_rust_sdk
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
next-version: 0.2.0
next-version: 0.3.0
assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatchTag
assembly-informational-format: '{MajorMinorPatch}{PreReleaseTagWithDash}'
Expand Down
2 changes: 0 additions & 2 deletions build.rs

This file was deleted.

8 changes: 4 additions & 4 deletions code-coverage.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test
grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/html
rm *.profraw
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test --manifest-path=./stellar_rust_sdk/Cargo.toml
grcov . --binary-path ./stellar_rust_sdk/target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o ./stellar_rust_sdk/target/coverage/html
rm ./stellar_rust_sdk/*.profraw
# open the coverage report in the browser
xdg-open target/coverage/html/index.html
xdg-open ./stellar_rust_sdk/target/coverage/html/index.html
166 changes: 0 additions & 166 deletions src/accounts/accounts_response.rs

This file was deleted.

89 changes: 0 additions & 89 deletions src/accounts/mod.rs

This file was deleted.

Loading

0 comments on commit a958848

Please sign in to comment.