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

Commit

Permalink
Upgrade deps (#23)
Browse files Browse the repository at this point in the history
* Upgrade deps

* Add release stuffs

* Format
  • Loading branch information
sethvargo committed Aug 19, 2020
1 parent 3def2e8 commit 8773b6d
Show file tree
Hide file tree
Showing 16 changed files with 372 additions and 259 deletions.
12 changes: 12 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Contributing

We'd love to accept your patches and contributions to this project. There are
just a few small guidelines you need to follow.


## Code reviews

All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.
3 changes: 0 additions & 3 deletions .github/lock.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/reaction.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lock closed
on:
schedule:
- cron: '0 0 * * *'

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: '${{ github.token }}'
issue-lock-inactive-days: 14
issue-lock-comment: |-
This issue has been automatically locked since there has not been any
recent activity after it was closed. Please open a new issue for
related bugs.
pr-lock-inactive-days: 14
pr-lock-comment: |-
This pull request has been automatically locked since there has not
been any recent activity after it was closed. Please open a new
issue for related bugs.
28 changes: 28 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Close stale
on:
schedule:
- cron: '0 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: '${{ github.token }}'

stale-issue-message: |-
This issue is stale because it has been open for 14 days with no
activity. It will automatically close after 7 more days of inactivity.
stale-issue-label: 'kind/stale'
exempt-issue-labels: 'bug,enhancement'

stale-pr-message: |-
This Pull Request is stale because it has been open for 14 days with
no activity. It will automatically close after 7 more days of
inactivity.
stale-pr-label: 'kind/stale'
exempt-pr-labels: 'bug,enhancement'

days-before-stale: 14
days-before-close: 7
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test

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

jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- 'macos-latest'
- 'ubuntu-latest'
- 'windows-latest'

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

steps:
- uses: actions/checkout@v2

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

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Lint
run: make fmtcheck staticcheck spellcheck
if: ${{ runner.os != 'Windows' }}

- name: Test
run: make test-acc
41 changes: 41 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X github.com/sethvargo/vault-secrets-gen/version.version={{.Version}} -X github.com/sethvargo/vault-secrets-gen/version.GitCommit={{.Commit}}'
goos:
- darwin
- freebsd
- linux
- netbsd
- openbsd
- windows
goarch:
- amd64
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
signs:
- artifacts: checksum
args:
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
draft: false
changelog:
skip: true
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 8773b6d

Please sign in to comment.