-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
omni-executor
basic CI checks (#3137)
* omni-executor rust version bump * check omni-executor in CI * cargo fmt * specify working dirs * remove verbose * fixes * fix lints --------- Co-authored-by: Kai <[email protected]>
- Loading branch information
1 parent
5b3aebd
commit 628b66a
Showing
11 changed files
with
78 additions
and
13 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 |
---|---|---|
|
@@ -60,6 +60,11 @@ on: | |
description: rebuild-bitacross | ||
required: true | ||
default: true | ||
check-omni-executor: | ||
type: boolean | ||
description: check-omni-executor | ||
required: true | ||
default: true | ||
run-multi-worker-test: | ||
type: boolean | ||
description: run-multi-worker-test | ||
|
@@ -95,6 +100,7 @@ jobs: | |
rebuild_parachain: ${{ steps.env.outputs.rebuild_parachain }} | ||
rebuild_identity: ${{ steps.env.outputs.rebuild_identity }} | ||
rebuild_bitacross: ${{ steps.env.outputs.rebuild_bitacross }} | ||
check_omni_executor: ${{ steps.env.outputs.check_omni_executor }} | ||
push_docker: ${{ steps.env.outputs.push_docker }} | ||
run_parachain_test: ${{ steps.env.outputs.run_parachain_test }} | ||
run_identity_test: ${{ steps.env.outputs.run_identity_test }} | ||
|
@@ -118,6 +124,7 @@ jobs: | |
rebuild_parachain=false | ||
rebuild_identity=false | ||
rebuild_bitacross=false | ||
check_omni_executor=false | ||
push_docker=false | ||
run_parachain_test=false | ||
run_identity_test=false | ||
|
@@ -130,6 +137,9 @@ jobs: | |
if [ "${{ github.event.inputs.rebuild-bitacross }}" = "true" ] || [ "${{ steps.filter.outputs.bitacross_src }}" = "true" ]; then | ||
rebuild_bitacross=true | ||
fi | ||
if [ "${{ github.event.inputs.check-omni-executor }}" = "true" ] || [ "${{ steps.filter.outputs.omni_executor_src }}" = "true" ]; then | ||
check_omni_executor=true | ||
fi | ||
if [ "${{ github.event.inputs.push-docker }}" = "true" ]; then | ||
push_docker=true | ||
elif [ "${{ github.event_name }}" = 'push' ] && [ "${{ github.ref }}" = 'refs/heads/dev' ]; then | ||
|
@@ -147,6 +157,7 @@ jobs: | |
echo "rebuild_parachain=$rebuild_parachain" | tee -a $GITHUB_OUTPUT | ||
echo "rebuild_identity=$rebuild_identity" | tee -a $GITHUB_OUTPUT | ||
echo "rebuild_bitacross=$rebuild_bitacross" | tee -a $GITHUB_OUTPUT | ||
echo "check_omni_executor=$check_omni_executor" | tee -a $GITHUB_OUTPUT | ||
echo "push_docker=$push_docker" | tee -a $GITHUB_OUTPUT | ||
echo "run_parachain_test=$run_parachain_test" | tee -a $GITHUB_OUTPUT | ||
echo "run_identity_test=$run_identity_test" | tee -a $GITHUB_OUTPUT | ||
|
@@ -191,6 +202,11 @@ jobs: | |
run: | | ||
cargo fmt --all -- --check | ||
- name: omni-executor fmt check | ||
working-directory: ./tee-worker/omni-executor | ||
run: | | ||
cargo fmt --all -- --check | ||
- name: Enable corepack and pnpm | ||
run: corepack enable && corepack enable pnpm | ||
|
||
|
@@ -570,6 +586,27 @@ jobs: | |
if: failure() | ||
uses: andymckay/[email protected] | ||
|
||
omni-executor-check: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- fmt | ||
- set-condition | ||
- sequentialise | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Clippy | ||
if: needs.set-condition.outputs.check_omni_executor == 'true' | ||
working-directory: ./tee-worker/omni-executor | ||
run: cargo clippy --release -- -D warnings | ||
- name: Build | ||
if: needs.set-condition.outputs.check_omni_executor == 'true' | ||
working-directory: ./tee-worker/omni-executor | ||
run: cargo build | ||
- name: Tests | ||
if: needs.set-condition.outputs.check_omni_executor == 'true' | ||
working-directory: ./tee-worker/omni-executor | ||
run: cargo test | ||
|
||
parachain-ts-test: | ||
runs-on: ubuntu-latest | ||
needs: | ||
|
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
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