forked from near-daos/sputnik-dao-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Astra] rename cleanup : make sure the tests are passing[Rust unit an…
…d integration tests] (#3) * update one test * update multi council test * update test bounty test * update test * cleanup * complete general tests * lint fix * update upgrade test * lint * add files * paths * update * update * remove files * path * flow * update * update * update * update * copy * buildg * update * update * update * update * update * update * update * update build * update * update * use 1.69.0 * remove build from job * add more tests * Apply suggestions from code review Co-authored-by: sczembor <[email protected]> * updates * fix * lint --------- Co-authored-by: sczembor <[email protected]>
- Loading branch information
1 parent
8799582
commit 58e7bab
Showing
20 changed files
with
804 additions
and
793 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,31 +1,43 @@ | ||
name: Tests | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: [master, main] | ||
merge_group: | ||
push: | ||
branches: ["master"] | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
tests: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.rs | ||
Cargo.lock | ||
- name: Install latest nightly | ||
if: env.GIT_DIFF | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
toolchain: 1.69.0 | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Install wasm32 toolchain | ||
if: env.GIT_DIFF | ||
run: rustup target add wasm32-unknown-unknown | ||
- name: Build | ||
env: | ||
IS_GITHUB_ACTION: true | ||
run: cargo +stable build --workspace --target wasm32-unknown-unknown --release | ||
run: sh build.sh | ||
|
||
- name: Run Cargo tests | ||
env: | ||
IS_GITHUB_ACTION: true | ||
run: cargo test --workspace -- --nocapture | ||
- name: Run Ava tests | ||
env: | ||
IS_GITHUB_ACTION: true | ||
run: cd astra && sh test.sh |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.