mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
Merge pull request #236 from foomo/feature/gcloud-config
Some checks failed
Test Branch / test (push) Has been cancelled
Some checks failed
Test Branch / test (push) Has been cancelled
feat(google/gcloud): config
This commit is contained in:
commit
5cfc72b91d
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -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
|
||||
|
||||
@ -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")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user