Skip to content

Commit

Permalink
chore: start using self-hosted runners
Browse files Browse the repository at this point in the history
Try using the Canonical self-hosted runners available as they are
available. The juju runners required setup which was never changed as
they were running noble. Specifying jammy to help ensure we do not
use the juju aws runners.
  • Loading branch information
hmlanigan committed Sep 12, 2024
1 parent 5db193f commit f534045
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Ensure project builds before running testing matrix
go-install:
name: install
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
Expand All @@ -34,7 +34,7 @@ jobs:

# Ensure the generated docs are up todate
generate:
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -49,7 +49,7 @@ jobs:
# Ensure the go code is formatted properly
format:
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -66,7 +66,7 @@ jobs:
# This runs golangci-lint against the codebase
lint:
name: golangci-lint
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
steps:
- uses: actions/checkout@v4
- name: Determine which tests to run
Expand All @@ -90,7 +90,7 @@ jobs:
# This runs golangci-lint against the codebase
copyright-check:
name: copyright-check
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# Ensure project builds before running testing matrix
build:
name: Build
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
Expand All @@ -29,7 +29,7 @@ jobs:
name: Terraform Provider Acceptance Tests
needs:
- build
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
timeout-minutes: 60
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
cla-check:
permissions:
pull-requests: write # for canonical/has-signed-canonical-cla to create & update comments
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
steps:
- name: Check if CLA signed
uses: canonical/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/k8s_tunnel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# Ensure project builds before running testing matrix
build:
name: Build
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
Expand All @@ -34,7 +34,7 @@ jobs:
add-machine-test:
name: Add Machine
needs: build
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
env:
ACTIONS_ALLOW_IPV6: false
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

jobs:
goreleaser:
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
environment: Release Environment
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_add_machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Ensure project builds before running testing matrix
build:
name: Build
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
Expand All @@ -39,7 +39,7 @@ jobs:
add-machine-test:
name: Add Machine
needs: build
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
env:
ACTIONS_ALLOW_IPV6: false
strategy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# Ensure project builds before running testing matrix
build:
name: Build
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
Expand All @@ -41,7 +41,7 @@ jobs:
test:
name: Integration
needs: build
runs-on: ubuntu-latest
runs-on: [self-hosted, jammy]
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit f534045

Please sign in to comment.