Skip to content

Commit

Permalink
add cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jul 18, 2024
1 parent c16740d commit 2f54304
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:

test:
name: Go Coverage
runs-on: namespace-profile-default-coverage-runner # ${{ matrix.platform }}
runs-on: ${{ contains(matrix.pacakge, 'agents' && 'ubuntu-latest' || 'namespace-profile-default-coverage-runner') }} namespace-profile-default-coverage-runner # ${{ matrix.platform }}
if: ${{ needs.changes.outputs.package_count_deps > 0 && (github.event_name != 'push' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch)) }}
needs: changes
strategy:
Expand Down Expand Up @@ -131,6 +131,7 @@ jobs:
go-version: ${{ matrix.go-version }}
cache: ${{ contains(runner.name, 'nsc') && 'false' || 'true' }}

# TODO: consider setting up cache key, see: https://discord.com/channels/975088590705012777/1263347501721714793/1263534719954452560
- name: Setup Go cache
uses: namespacelabs/nscloud-cache-action@v1
if: ${{ contains(runner.name, 'nsc') }}
Expand Down Expand Up @@ -209,7 +210,7 @@ jobs:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: password
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}
GOMEMLIMIT: 3GiB
GOMEMLIMIT: 8GiB
GOGC: -1
ETHEREUM_RPC_URI: ${{ secrets.ETHEREUM_RPC_URI }}
GOPROXY: https://proxy.golang.org
Expand Down

0 comments on commit 2f54304

Please sign in to comment.