Skip to content

Commit

Permalink
Merge pull request #64 from garikbesson/migrate-and-reorganize
Browse files Browse the repository at this point in the history
Migrate (SDK 5.1.0) and reorganize
  • Loading branch information
gagdiez authored Apr 30, 2024
2 parents 65ef6bc + a389954 commit b4ac501
Show file tree
Hide file tree
Showing 93 changed files with 4,523 additions and 1,751 deletions.
39 changes: 10 additions & 29 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,19 @@ jobs:
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Build smart contract
run: npm run build
- name: Run integration test
run: cd integration-tests && cargo run --example integration-tests
- name: Run unit tests
run: npm run test:unit
integration-tests:
name: Integration tests
strategy:
matrix:
platform: [ubuntu-latest] # , windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
env:
RUST_BACKTRACE: 1
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Build smart contract
run: npm run build
- name: Run Rust integration tests
run: npm run test:integration:rs
- name: Run TS integration tests
run: npm run test:integration:ts
run: cd market-contract && cargo test
run: cd ../nft-contract && cargo test
run: cd ../nft-contract-approval && cargo test
run: cd ../nft-contract-basic && cargo test
run: cd ../nft-contract-events && cargo test
run: cd ../nft-contract-royalty && cargo test
run: cd ../nft-contract-skeleton && cargo test
run: cd ../nft-series && cargo test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ notes

# misc
.DS_Store
.vscode
.env.local
.env.development.local
.env.test.local
Expand Down
15 changes: 15 additions & 0 deletions integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "nonfungible-token-integration-tests"
version = "1.0.0"
publish = false
edition = "2021"

[dev-dependencies]
near-sdk = { version = "5.1.0", features = ["unit-testing"] }
near-workspaces = { version = "0.10.0", features = ["unstable"] }
tokio = { version = "1.12.0", features = ["full"] }
serde_json = "1"

[[example]]
name = "integration-tests"
path = "src/tests.rs"
23 changes: 0 additions & 23 deletions integration-tests/rs/Cargo.toml

This file was deleted.

Loading

0 comments on commit b4ac501

Please sign in to comment.