Adding upstream version 3.6.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1347af6294
commit
cb9cbb7a25
32 changed files with 4944 additions and 0 deletions
11
.github/dependabot.yml
vendored
Normal file
11
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: gomod
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
open-pull-requests-limit: 99
|
||||
reviewers:
|
||||
- domodwyer
|
||||
assignees:
|
||||
- domodwyer
|
40
.github/pull_request_template.md
vendored
Normal file
40
.github/pull_request_template.md
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
<!--
|
||||
|
||||
Thanks for opening a PR! Seriously, it's awesome, thank you!
|
||||
|
||||
To make sure this is as easy as possible, please make sure:
|
||||
|
||||
* There are no breaking changes
|
||||
* Your change has tests
|
||||
* Existing tests pass
|
||||
* You've run the static analysis lints!
|
||||
|
||||
The lints run as part of the CI process so they need to pass before the PR can
|
||||
be merged. If you want to run them locally too see below.
|
||||
|
||||
Please delete this template and write your PR message :)
|
||||
|
||||
Thanks again!
|
||||
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
If you want to run the lints locally, they are executed as pre-commit hooks and
|
||||
are managed with https://pre-commit.com
|
||||
|
||||
Once pre-commit is installed, add the hooks to this repo:
|
||||
|
||||
```bash
|
||||
dom:mailyak% pre-commit install -t pre-commit
|
||||
dom:mailyak% pre-commit install -t pre-push
|
||||
dom:mailyak% pre-commit install -t post-checkout
|
||||
```
|
||||
|
||||
They will then check any commits you make from now on :)
|
||||
|
||||
If you want to quickly run them without committing something, just run
|
||||
`pre-commit run --all`
|
||||
|
||||
-->
|
37
.github/workflows/go-test.yml
vendored
Normal file
37
.github/workflows/go-test.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: unit tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
go:
|
||||
- '1.8'
|
||||
- '1.9.x'
|
||||
- '1.10.x'
|
||||
- '1.11.x'
|
||||
- '1.12.x'
|
||||
- '1.13.x'
|
||||
- '1.14.x'
|
||||
- '1.15.x'
|
||||
|
||||
name: Go ${{ matrix.go }}
|
||||
steps:
|
||||
- name: Set up Go ${{ matrix.go }}
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Test
|
||||
run: go test ./... -v
|
25
.github/workflows/lints.yml
vendored
Normal file
25
.github/workflows/lints.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: lints
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: install go-imports
|
||||
run: go install golang.org/x/tools/cmd/goimports@latest
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: pre-commit/action@v2.0.0
|
||||
with:
|
||||
extra_args: --all-files --hook-stage=manual
|
||||
|
||||
golangci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
Loading…
Add table
Add a link
Reference in a new issue