Compare commits

...

3 Commits

Author SHA1 Message Date
Kevin Franklin Kim
5cfc72b91d
Merge pull request #236 from foomo/feature/gcloud-config
Some checks failed
Test Branch / test (push) Has been cancelled
feat(google/gcloud): config
2025-10-08 10:57:04 +02:00
Kevin Franklin Kim
fb86a77262
chore: switch to cache 2025-10-08 10:53:10 +02:00
Kevin Franklin Kim
7506df3a6d
feat: expose gcloud config 2025-10-08 10:39:05 +02:00
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")
}