-
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.
- Loading branch information
1 parent
3ce70ee
commit e4ee7eb
Showing
1 changed file
with
39 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Github workflow for update-agent | ||
|
||
name: update-agent | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_call: | ||
secrets: | ||
GIT_HUB_TOKEN: | ||
required: true | ||
CACHIX_AUTH_TOKEN: | ||
required: false | ||
push: | ||
branches: | ||
- main | ||
- prod | ||
tags: | ||
- '**' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-24.04-arm | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install podman libguestfs-tools pkg-config libssl-dev build-essential cargo | ||
cargo install nu --locked | ||
- name: Build | ||
run: | | ||
cargo build | ||
- name: Run functional tests | ||
run: | | ||
./t/podman-runner.nu mock mock_path | ||
./t/podman-runner.nu run target/debug/orb-update-agent mock_path | ||
./t/podman-runner.nu check mock_path |