Merge pull request #236 from foomo/feature/gcloud-config
Some checks failed
Test Branch / test (push) Has been cancelled

feat(google/gcloud): config
This commit is contained in:
Kevin Franklin Kim 2025-10-08 10:57:04 +02:00 committed by GitHub
commit 5cfc72b91d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 3 deletions

View File

@ -4,6 +4,7 @@ on:
push:
branches: [ main ]
pull_request:
merge_group:
workflow_dispatch:
concurrency:
@ -12,7 +13,6 @@ concurrency:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
@ -24,9 +24,13 @@ jobs:
check-latest: true
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v8
- name: Setup golangci-lint cache
uses: actions/cache@v3
with:
install-mode: none
path: ~/.cache/golangci-lint
key: ${{ runner.os }}-golangci-lint-${{ hashFiles('**/go.mod') }}
restore-keys: |
${{ runner.os }}-golangci-lint-
- name: Run tidy
run: make tidy && git diff --exit-code

View File

@ -89,6 +89,10 @@ func New(l log.Logger, cache cache.Cache, opts ...Option) (*GCloud, error) {
// ~ Public methods
// ------------------------------------------------------------------------------------------------
func (p *GCloud) Config() *Config {
return p.cfg
}
func (p *GCloud) ServiceAccountKeysPath() string {
return path.Join(p.cfg.ConfigPath, "service_account_keys")
}