Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to self hosted runner #287

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
integration-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-noble-garm
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -17,14 +17,14 @@ jobs:
go-version-file: go.mod

- name: Setup LXD
uses: canonical/setup-lxd@v0.1.1
uses: canonical/setup-lxd@main

- name: Install dependencies
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get -qq update && sudo apt-get -qq install -y apg coreutils make
sudo apt-get -qq update && sudo apt-get -qq install -y apg coreutils make jq build-essential libsqlite3-dev libsqlite3-0

- name: Set up localshow tunnel
- name: Set up tunnel
shell: bash
run: |
mkdir -p /home/runner/.ssh
Expand Down
12 changes: 1 addition & 11 deletions test/integration/config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,4 @@ description = "external test provider"
provider_type = "external"
[provider.external]
config_file = "${GARM_CONFIG_DIR}/test-provider/config"
provider_executable = "${GARM_CONFIG_DIR}/test-provider/garm-external-provider"

[[github]]
name = "${CREDENTIALS_NAME}"
description = "GARM GitHub OAuth token"
oauth2_token = "${GH_TOKEN}"

[[github]]
name = "${CREDENTIALS_NAME}-clone"
description = "GARM GitHub OAuth token - clone"
oauth2_token = "${GH_TOKEN}"
provider_executable = "${GARM_CONFIG_DIR}/test-provider/garm-external-provider"
2 changes: 1 addition & 1 deletion test/integration/scripts/setup-garm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ sudo cp $CONFIG_DIR/garm-provider-lxd.toml $LXD_PROVIDER_CONFIG
function clone_and_build_lxd_provider() {
git clone https://github.com/cloudbase/garm-provider-lxd ~/garm-provider-lxd
pushd ~/garm-provider-lxd
go build -o $LXD_PROVIDER_EXECUTABLE
CGO_ENABLED=1 go build -o $LXD_PROVIDER_EXECUTABLE
popd
}

Expand Down
Loading