-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ryanbutler-orbs-274-add-open-telemetry-suppo…
…rt-in-orb-telemetry
- Loading branch information
Showing
20 changed files
with
972 additions
and
48 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,45 @@ | ||
# Github workflow for update-agent | ||
|
||
name: update-agent | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_call: | ||
secrets: | ||
GIT_HUB_TOKEN: | ||
required: true | ||
push: | ||
branches: | ||
- main | ||
- prod | ||
tags: | ||
- '**' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install libguestfs-tools pkg-config libssl-dev build-essential cargo libudev-dev protobuf-compiler | ||
cargo install nu --locked | ||
- name: make host kernel image readable, for guestfish | ||
run: sudo chmod +r /boot/vmlinuz-* | ||
|
||
- name: guestfish access to kvm | ||
run: sudo chmod 0666 /dev/kvm | ||
|
||
- name: Build | ||
run: | | ||
cd update-agent | ||
cargo build --features skip-manifest-signature-verification | ||
- name: Run functional tests | ||
run: | | ||
cd update-agent/t | ||
./podman-runner.nu mock mock_path | ||
./podman-runner.nu run ../../target/debug/orb-update-agent mock_path | ||
./podman-runner.nu check mock_path |
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
|
||
# IDE stuff | ||
.idea/ | ||
.vscode/ | ||
|
||
# Allow developers to use python pre-commit locally | ||
/.pre-commit-config.yaml |
Oops, something went wrong.