-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(action): lint and test api-rust (#20941)
- Loading branch information
1 parent
c5cc32a
commit 8050638
Showing
3 changed files
with
60 additions
and
0 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 |
---|---|---|
|
@@ -34,6 +34,7 @@ jobs: | |
# Applications | ||
api-go: ${{ steps.filter.outputs.api-go }} | ||
api-node: ${{ steps.filter.outputs.api-node }} | ||
api-rust: ${{ steps.filter.outputs.api-rust }} | ||
ethereum: ${{ steps.filter.outputs.ethereum }} | ||
grafana-hm-panel-plugin: ${{ steps.filter.outputs.grafana-hm-panel-plugin }} | ||
hm-spark-find-retired-people-scala: ${{ steps.filter.outputs.hm-spark-find-retired-people-scala }} | ||
|
@@ -165,6 +166,9 @@ jobs: | |
api-node: | ||
- '.github/workflows/.lint.yml' | ||
- 'api-node/**' | ||
api-rust: | ||
- '.github/workflows/.lint.yml' | ||
- 'api-rust/**' | ||
ethereum: | ||
- '.github/workflows/.lint.yml' | ||
- 'ethereum/**' | ||
|
@@ -737,6 +741,31 @@ jobs: | |
run: | | ||
bundle exec rubocop | ||
lint-rust-api-rust: | ||
name: Rust (api-rust) | ||
needs: detect-changes | ||
if: ${{ needs.detect-changes.outputs.iads-api-rust == 'true' }} | ||
runs-on: ubuntu-22.04 | ||
environment: test | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up Rust | ||
uses: actions-rust-lang/[email protected] | ||
- name: Install dependencies | ||
working-directory: api-rust | ||
run: | | ||
cargo build | ||
- name: Lint Rust (rustfmt) | ||
working-directory: api-rust | ||
run: | | ||
cargo fmt --all | ||
- name: Lint Rust (Clippy) | ||
working-directory: api-rust | ||
run: | | ||
cargo clippy | ||
lint-rust-iads-data-producer: | ||
name: Rust (iads-data-producer) | ||
needs: detect-changes | ||
|
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,7 @@ jobs: | |
api-go: ${{ steps.filter.outputs.api-go }} | ||
api-node: ${{ steps.filter.outputs.api-node }} | ||
api-python: ${{ steps.filter.outputs.api-python }} | ||
api-rust: ${{ steps.filter.outputs.api-rust }} | ||
call-matlab-function-in-python: ${{ steps.filter.outputs.call-matlab-function-in-python }} | ||
decode-can-data: ${{ steps.filter.outputs.decode-can-data }} | ||
development-aws-glue-spark-scripts: ${{ steps.filter.outputs.development-aws-glue-spark-scripts }} | ||
|
@@ -129,6 +130,9 @@ jobs: | |
api-python: | ||
- '.github/workflows/test.yml' | ||
- 'api-python/**' | ||
api-rust: | ||
- '.github/workflows/test.yml' | ||
- 'api-rust/**' | ||
call-matlab-function-in-python: | ||
- '.github/workflows/test.yml' | ||
- 'matlab/call-matlab-function-in-python/**' | ||
|
@@ -774,6 +778,27 @@ jobs: | |
with: | ||
directory: api-python | ||
|
||
api-rust-test: | ||
name: API - Rust | Test | ||
needs: detect-changes | ||
if: ${{ needs.detect-changes.outputs.api-rust == 'true' }} | ||
runs-on: ubuntu-22.04 | ||
environment: test | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up Rust | ||
uses: actions-rust-lang/[email protected] | ||
- name: Install dependencies | ||
working-directory: api-rust | ||
run: | | ||
cargo build | ||
- name: Test | ||
working-directory: api-rust | ||
run: | | ||
cargo test --all-features | ||
airflow-test: | ||
name: Airflow | Test | ||
needs: detect-changes | ||
|
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