Skip to content

Commit

Permalink
Merge branch 'main' into ryanbutler-orbs-274-add-open-telemetry-suppo…
Browse files Browse the repository at this point in the history
…rt-in-orb-telemetry
  • Loading branch information
TheButlah authored Feb 6, 2025
2 parents 0c0e64a + eb26de4 commit f53ab31
Show file tree
Hide file tree
Showing 20 changed files with 972 additions and 48 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/update-agent.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

# IDE stuff
.idea/
.vscode/

# Allow developers to use python pre-commit locally
/.pre-commit-config.yaml
Loading

0 comments on commit f53ab31

Please sign in to comment.