-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from sinhashubham95/compat
Compatibility Fixes and Template Additions
- Loading branch information
Showing
9 changed files
with
129 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
- With issues: | ||
|
||
- Use the search tool before opening a new issue. | ||
|
||
- Please provide source code and commit sha if you found a bug. | ||
|
||
- Review existing issues and provide feedback or react to them. | ||
|
||
## Description | ||
|
||
<!-- Description of a problem --> | ||
|
||
## How to reproduce | ||
|
||
<!-- The smallest possible code example to show the problem that can be compiled, like --> | ||
|
||
``` | ||
package main | ||
import ( | ||
"github.com/sinhashubham95/go-actuator" | ||
) | ||
func main() { | ||
// actuator configuration | ||
} | ||
``` | ||
|
||
## Expectations | ||
|
||
<!-- Your expectation result of 'curl' command, like --> | ||
|
||
``` | ||
$ curl http://localhost:8201/actuator/[endpoint] | ||
Hello world | ||
``` | ||
|
||
## Actual result | ||
|
||
<!-- Actual result showing the problem --> | ||
|
||
``` | ||
$ curl -i http://localhost:8201/actuator/[endpoint] | ||
<YOUR RESULT> | ||
``` | ||
|
||
## Environment | ||
|
||
- go version: | ||
|
||
- go-actuator version (or commit ref): | ||
|
||
- operating system: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- With pull requests: | ||
|
||
- Open your pull request against `master` | ||
|
||
- Your pull request should have no more than two commits, if not you should squash them. | ||
|
||
- It should pass all tests in the available continuous integration GitHub Actions. | ||
|
||
- You should add/modify tests to cover your proposed code changes. | ||
|
||
- If your pull request contains a new feature, please document it on the [README](../README.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
strategy: | ||
matrix: | ||
go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x] | ||
platform: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
id: go | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
- name: Run tests | ||
run: go test ./... -coverprofile profile.cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ coverage.out | |
|
||
__debug_bin | ||
|
||
profile.cov | ||
profile.cov | ||
profile.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Contributing | ||
|
||
- With issues: | ||
|
||
- Use the search tool before opening a new issue. | ||
|
||
- Please provide source code and commit sha if you found a bug. | ||
|
||
- Review existing issues and provide feedback or react to them. | ||
|
||
- With pull requests: | ||
|
||
- Open your pull request against `master` | ||
|
||
- Your pull request should have no more than two commits, if not you should squash them. | ||
|
||
- It should pass all tests in the available continuous integration systems such as GitHub Actions. | ||
|
||
- You should add/modify tests to cover your proposed code changes. | ||
|
||
- If your pull request contains a new feature, please document it on the README. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters