-
Notifications
You must be signed in to change notification settings - Fork 2
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 #6 from eclipse-chariott/ladatz/migratedm
Migrate Dog Mode end to end example to the examples repository
- Loading branch information
Showing
98 changed files
with
11,014 additions
and
21 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[env] | ||
DEFAULT_INTENT_BROKER_URL = "http://0.0.0.0:4243" |
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,2 @@ | ||
*.pb filter=lfs diff=lfs merge=lfs -text | ||
intent_brokering/dogmode/applications/local-object-detection/models/ssd_mobilenet_v2_coco.pb filter=lfs diff=lfs merge=lfs -text |
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,37 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: DevSkim | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '17 19 * * 4' | ||
|
||
jobs: | ||
lint: | ||
name: DevSkim | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run DevSkim scanner | ||
uses: microsoft/DevSkim-Action@v1 | ||
with: | ||
ignore-globs: "*.json" | ||
|
||
- name: Upload DevSkim scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: devskim-results.sarif |
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,33 @@ | ||
name: .NET CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'intent_brokering/dogmode/applications/dog-mode-ui/**' | ||
- '.github/workflows/dotnet-ci.yml' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: 6.0.403 | ||
global-json-file: intent_brokering/dogmode/applications/dog-mode-ui/global.json | ||
|
||
- run: dotnet --info | ||
|
||
- run: dotnet build intent_brokering/dogmode/applications/dog-mode-ui |
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,27 @@ | ||
name: EditorConfig audit | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
editorconfig-audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
- run: npm install eclint | ||
- run: | | ||
# Unfortunately, if the "".editorconfig" is present then "eclint" | ||
# checks for full conformance either irrespective or on top of the | ||
# check options you given the command-line. By removing the file, only | ||
# the given options are checked. | ||
git ls-files | grep -iF .editorconfig | xargs -t -n 1 rm | ||
env node_modules/.bin/eclint check --insert_final_newline --trim_trailing_whitespace $(git ls-files | grep -viF .editorconfig | grep -viE "\.pb$") |
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,84 @@ | ||
name: Rust CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'intent_brokering/dogmode/common/**' | ||
- 'intent_brokering/dogmode/applications/**' | ||
- 'Cargo.lock' | ||
- 'Cargo.toml' | ||
- 'rust-toolchain.toml' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
static_code_analysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Install protobuf-compiler | ||
run: sudo apt-get install -y protobuf-compiler | ||
- name: Install stable toolchain | ||
run: | | ||
rustup show | ||
rustup component add rustfmt clippy | ||
- name: Cache Dependencies | ||
uses: Swatinem/rust-cache@v1 | ||
- run: cargo check --workspace --locked | ||
- run: cargo clippy --all-targets --all-features --workspace --no-deps -- -D warnings | ||
- run: cargo fmt --all -- --check | ||
- name: Run doctest only | ||
# we run doctests here as cargo tarpaulin (our test runner) | ||
# requires nightly toolchain to do so | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --workspace --doc | ||
- name: Run cargo doc | ||
# This step is required to detect possible errors in docs that are not doctests. | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: --workspace --no-deps # Warnings are treated as errors due to our .cargo/config file. | ||
|
||
|
||
build_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Install protobuf-compiler | ||
run: sudo apt-get install -y protobuf-compiler | ||
- name: Install stable toolchain | ||
run: rustup show | ||
- name: Cache Dependencies | ||
uses: Swatinem/rust-cache@v1 | ||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: '0.21.0' | ||
args: '--workspace --ignore-tests --skip-clean --exclude-files spikes/* --exclude-files examples/* --exclude-files tests/*' | ||
|
||
buf: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: bufbuild/buf-setup-action@v1 | ||
with: | ||
version: '1.8.0' | ||
- uses: bufbuild/buf-lint-action@v1 |
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,23 @@ | ||
name: Security Audit | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
- ".github/workflows/security-audit.yaml" | ||
schedule: | ||
- cron: "0 0 * * *" # once a day at midnight UTC | ||
# NB: that cron trigger on GH actions runs only on the default branch | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
security_audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: cargo audit -D warnings |
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ bld/ | |
**/*.rs.bk | ||
|
||
# Stops pushes of local vscode files. | ||
/.vscode/* | ||
/.vscode/* |
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,3 @@ | ||
[submodule "external/chariott"] | ||
path = external/chariott | ||
url = https://github.com/eclipse-chariott/chariott |
Oops, something went wrong.