forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 94
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 #1804 from KomodoPlatform/dev
[release] v1.0.4-beta
- Loading branch information
Showing
114 changed files
with
9,264 additions
and
3,980 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
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,95 @@ | ||
name: adex-cli | ||
on: [push] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
|
||
jobs: | ||
code-check: | ||
timeout-minutes: 60 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: pre scripts for ci container | ||
run: | | ||
git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API | ||
echo "/bin" >> $GITHUB_PATH | ||
echo "/usr/bin" >> $GITHUB_PATH | ||
echo "/root/.cargo/bin" >> $GITHUB_PATH | ||
- name: Calculate commit hash for PR commit | ||
if: github.event_name == 'pull_request' | ||
run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV | ||
|
||
- name: Calculate commit hash for merge commit | ||
if: github.event_name != 'pull_request' | ||
run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV | ||
|
||
- name: Start checking code format and lint | ||
run: | | ||
cargo fmt --manifest-path ./mm2src/adex_cli/Cargo.toml --all -- --check | ||
cargo clippy --manifest-path ./mm2src/adex_cli/Cargo.toml --all-targets --all-features -- --D warnings | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: pre scripts for ci container | ||
run: | | ||
git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API | ||
echo "/bin" >> $GITHUB_PATH | ||
echo "/usr/bin" >> $GITHUB_PATH | ||
echo "/root/.cargo/bin" >> $GITHUB_PATH | ||
- name: Calculate commit hash for PR commit | ||
if: github.event_name == 'pull_request' | ||
run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV | ||
|
||
- name: Calculate commit hash for merge commit | ||
if: github.event_name != 'pull_request' | ||
run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV | ||
|
||
- name: Start testing | ||
run: | | ||
cargo test --manifest-path ./mm2src/adex_cli/Cargo.toml | ||
build: | ||
timeout-minutes: 60 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: pre scripts for ci container | ||
run: | | ||
git config --global --add safe.directory /__w/atomicDEX-API/atomicDEX-API | ||
echo "/bin" >> $GITHUB_PATH | ||
echo "/usr/bin" >> $GITHUB_PATH | ||
echo "/root/.cargo/bin" >> $GITHUB_PATH | ||
- name: Calculate commit hash for PR commit | ||
if: github.event_name == 'pull_request' | ||
run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV | ||
|
||
- name: Calculate commit hash for merge commit | ||
if: github.event_name != 'pull_request' | ||
run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV | ||
|
||
- name: Start building | ||
run: | | ||
cargo build --manifest-path ./mm2src/adex_cli/Cargo.toml |
Oops, something went wrong.