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

chore: test depot runner #1383

Closed
wants to merge 6 commits into from
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'depot-ubuntu-22.04-16' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/router-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ jobs:

- uses: ./.github/actions/go
with:
cache-dependency-path: router/go.sum
cache-dependency-path: |
router/go.sum
router-tests/go.sum
demo/go.sum

- uses: ./.github/actions/go-mod-tidy
with:
Expand Down Expand Up @@ -96,7 +99,7 @@ jobs:
# that have access to the secrets
build_test:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
runs-on: depot-ubuntu-22.04-32
timeout-minutes: 15
services:
redis:
Expand All @@ -123,19 +126,12 @@ jobs:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}

- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
# The go install / version instructions are inside the Makefile, so we need to cache the Makefile.
key: ${{ runner.os }}-go-${{ hashFiles('router/go.sum') }}-makefile-${{ hashFiles('Makefile') }}
restore-keys: |
${{ runner.os }}-go-

- uses: ./.github/actions/go
with:
cache-dependency-path: router/go.sum
cache-dependency-path: |
router/go.sum
router-tests/go.sum
demo/go.sum

- uses: ./.github/actions/go-mod-tidy
with:
Expand Down Expand Up @@ -177,7 +173,7 @@ jobs:
run: make build

build_push_image:
runs-on: ubuntu-latest
runs-on: depot-ubuntu-22.04-8
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
Expand Down