Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
Recover from panics and log a message (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo authored Dec 29, 2021
1 parent eb34155 commit 9fabac6
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 176 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Test
name: 'test'

on:
push:
branches:
- main
- 'main'
tags:
- '*'
pull_request:
branches:
- main
- 'main'
workflow_dispatch:

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
test:
Expand All @@ -20,21 +25,21 @@ jobs:
- 'ubuntu-latest'
- 'windows-latest'

runs-on: ${{ matrix.os }}
runs-on: '${{ matrix.os }}'

steps:
- uses: actions/checkout@v2
- uses: 'actions/checkout@v2'

- uses: actions/setup-go@v2
- uses: 'actions/setup-go@v2'
with:
go-version: '1.15'
go-version: '1.17'

- uses: actions/cache@v2
- uses: 'actions/cache@v2'
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
path: '~/go/pkg/mod'
key: '${{ runner.os }}-go-${{ hashFiles(''**/go.sum'') }}'
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: make test-acc
- name: 'Test'
run: 'make test-acc'
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module github.com/sethvargo/vault-secrets-gen
go 1.17

require (
github.com/hashicorp/vault/api v1.3.0
github.com/hashicorp/go-hclog v1.0.0
github.com/hashicorp/vault/api v1.3.1
github.com/hashicorp/vault/sdk v0.3.0
github.com/sethvargo/go-diceware v0.2.1
github.com/sethvargo/go-password v0.2.0
Expand All @@ -19,7 +20,6 @@ require (
github.com/golang/snappy v0.0.4 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v1.0.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-kms-wrapping/entropy v0.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
Expand Down Expand Up @@ -52,7 +52,7 @@ require (
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11 // indirect
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
google.golang.org/genproto v0.0.0-20211223182754-3ac035c7e7cb // indirect
google.golang.org/grpc v1.43.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
Expand Down
Loading

0 comments on commit 9fabac6

Please sign in to comment.