Skip to content

Commit

Permalink
Merge pull request #287 from gabriel-samfira/switch-to-self-hosted
Browse files Browse the repository at this point in the history
Switch to self hosted runner
  • Loading branch information
gabriel-samfira committed Aug 14, 2024
2 parents fc32978 + d5cbc5b commit 3b1e3c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
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

0 comments on commit 3b1e3c7

Please sign in to comment.