forked from neo-project/neo-express
-
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.
Added test workflow for basic neoxp commands (neo-project#356)
* Test init * update pr.yml * udpate pr.yml * added prerelease to install * quick test * basic tests for neo-express node are setup * removed old neoxp test in test.yml * added cron back --------- Co-authored-by: Jimmy <jinghui@wayne.edu>
1 parent
b2feec5
commit 8bab177
Showing
4 changed files
with
67 additions
and
11 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 |
---|---|---|
|
@@ -27,6 +27,8 @@ on: | |
- '.gitattributes' | ||
- 'LICENSE' | ||
- '**/*.md' | ||
schedule: | ||
- cron: '35 10 * * 3' | ||
|
||
jobs: | ||
analyze: | ||
|
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,62 @@ | ||
name: Neo Express | ||
|
||
on: | ||
workflow_call: | ||
|
||
env: | ||
AZURE_ARTIFACTS_FEED_URL: https://nuget.pkg.github.com/neo-project/index.json | ||
DOTNET_VERSION: '7.0.x' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
source-url: ${{ env.AZURE_ARTIFACTS_FEED_URL }} | ||
env: | ||
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Download Express | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: express | ||
path: ./out | ||
|
||
- name: Install Neo Express | ||
run: dotnet tool install --add-source ./out --verbosity normal --global --prerelease neo.express | ||
|
||
- name: Test Create Command | ||
run: neoxp create | ||
|
||
- name: Test Checkpoint Command (offline) | ||
run: neoxp checkpoint create checkpoints/init --force | ||
|
||
- name: Test Policy Command (offline) | ||
run: | | ||
neoxp policy get --rpc-uri mainnet --json > mainnet-policy.json | ||
neoxp policy sync mainnet-policy genesis | ||
- name: Test Wallet Command | ||
run: | | ||
neoxp wallet create bob | ||
- name: Test Transfer Command (offline) | ||
run: | | ||
neoxp transfer 10000 gas genesis node1 | ||
neoxp transfer 10000 gas genesis bob | ||
- name: Test Run Command (online) | ||
timeout-minutes: 1 | ||
run: neoxp run --seconds-per-block 3 --discard & | ||
|
||
- name: Test Transfer Command (online) | ||
run: | | ||
neoxp transfer 10000 gas genesis node1 | ||
neoxp transfer 10000 gas genesis bob | ||
- name: Test Stop Command (online) | ||
run: neoxp stop --all | ||
|
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