-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add integ testing for event processor and added pr-level, nightly-bui…
…ld, and release workflow (#488)
- Loading branch information
Showing
12 changed files
with
1,904 additions
and
759 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,28 @@ | ||
name: "Install Dependencies and Run Linter" | ||
description: "Installs dependencies and runs the Rust linter." | ||
|
||
inputs: | ||
working-directory: | ||
description: 'The working directory for the linter' | ||
required: true | ||
default: '.' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt update && sudo apt install libdw-dev | ||
cargo install cargo-sort | ||
rustup update | ||
rustup toolchain install nightly | ||
rustup component add clippy --toolchain nightly | ||
rustup component add rustfmt --toolchain nightly | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
|
||
- name: Run Linter | ||
run: | | ||
scripts/rust_lint.sh --check | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} |
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,28 @@ | ||
name: Run Integration Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
Integration-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set branch | ||
run: echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies and Run Linter | ||
uses: ./.github/actions/dep_install_and_lint | ||
with: | ||
working-directory: rust | ||
|
||
- name: Run Integration Tests | ||
run: cargo test --manifest-path integration-tests/Cargo.toml | ||
working-directory: rust |
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,24 @@ | ||
name: "Nightly Run Integration Tests" | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 9 * * *' # This runs the workflow every day at 9:00 AM UTC | ||
|
||
jobs: | ||
|
||
nightly-run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies and Run Linter | ||
uses: ./.github/actions/dep_install_and_lint | ||
with: | ||
working-directory: rust | ||
|
||
- name: Run Integration Tests | ||
run: cargo test --manifest-path integration-tests/Cargo.toml | ||
working-directory: rust |
Oops, something went wrong.