-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from public-awesome/tasiov/royalty-registry
Royalty Registry Contract
- Loading branch information
Showing
93 changed files
with
15,145 additions
and
2,320 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[alias] | ||
wasm = "build --lib --release --target wasm32-unknown-unknown" | ||
wasm-debug = "build --target wasm32-unknown-unknown" | ||
wasm = "build --lib --release --target wasm32-unknown-unknown --workspace --exclude sg-multi-test" | ||
wasm-debug = "build --lib --target wasm32-unknown-unknown --workspace --exclude sg-multi-test" | ||
unit-test = "test --lib -- --nocapture" | ||
lint = "clippy -- -D warnings" | ||
e2e-test = "test --package e2e-tests -- --nocapture --ignored --test-threads 1 -Z unstable-options --report-time" | ||
lint = "clippy -- -D warnings" |
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,43 @@ | ||
name: E2E Integration Tests | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: E2E tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install latest nightly toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: nightly | ||
targets: wasm32-unknown-unknown | ||
|
||
- name: Rust Dependencies Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
artifacts/ | ||
key: ${{ runner.os }}-cargo-with-artifacts-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- uses: extractions/setup-just@v1 | ||
|
||
- name: Download artifacts | ||
run: just download-artifacts | ||
|
||
- name: Optimize contracts | ||
run: just optimize | ||
|
||
- name: Run local stargaze chain | ||
run: just deploy-local | ||
|
||
- name: Run e2e tests | ||
run: just e2e-test |
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 |
---|---|---|
@@ -1,36 +1,29 @@ | ||
name: Release Wasm | ||
name: Build and Upload Contracts | ||
|
||
on: | ||
release: | ||
types: [created] | ||
types: [created, edited] | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
build_and_upload_contracts: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout sources | ||
- uses: extractions/setup-just@v1 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install cargo-run-script | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: cargo-run-script | ||
- name: Run cargo optimize | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: run-script | ||
args: optimize | ||
- name: Get release ID | ||
id: get_release | ||
uses: bruceadams/get-release@v1.2.3 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: Upload optimized wasm | ||
uses: svenstaro/upload-release-action@v2 | ||
|
||
- name: Build development contracts | ||
run: just optimize | ||
|
||
- name: Show data | ||
run: | | ||
ls -l artifacts | ||
cat artifacts/checksums.txt | ||
- name: Publish artifacts on GitHub | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ./artifacts/*.wasm | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
files: | | ||
artifacts/* |
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.