-
-
Notifications
You must be signed in to change notification settings - Fork 78
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 #103 from spiral/pkg.go.dev_wrong_version
stabilization(various): stabilization PR
- Loading branch information
Showing
20 changed files
with
223 additions
and
125 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,12 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: gomod # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: daily | ||
|
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,24 @@ | ||
# Reason for This PR | ||
|
||
`[Author TODO: add issue # or explain reasoning.]` | ||
|
||
## Description of Changes | ||
|
||
`[Author TODO: add description of changes.]` | ||
|
||
## License Acceptance | ||
|
||
By submitting this pull request, I confirm that my contribution is made under | ||
the terms of the MIT license. | ||
|
||
## PR Checklist | ||
|
||
`[Author TODO: Meet these criteria.]` | ||
`[Reviewer TODO: Verify that these criteria are met. Request changes if not]` | ||
|
||
- [ ] All commits in this PR are signed (`git commit -s`) or (`git commit -S`). | ||
- [ ] The reason for this PR is clearly provided (issue no. or explanation). | ||
- [ ] The description of changes is clear and encompassing. | ||
- [ ] Any required documentation changes (code and docs) are included in this PR. | ||
- [ ] Any user-facing changes are mentioned in `CHANGELOG.md`. | ||
- [ ] All added/changed functionality is tested. |
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,25 @@ | ||
name: Linters | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
# Branches from forks have the form 'user:branch-name' so we only run | ||
# this job on pull_request events for branches that look like fork | ||
# branches. Without this we would end up running this job twice for non | ||
# forked PRs, once for the push and then once for opening the PR. | ||
- '**:**' | ||
|
||
jobs: | ||
golangci-lint: | ||
name: Golang-CI (lint) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run linter | ||
uses: golangci/golangci-lint-action@v2 # Action page: <https://github.com/golangci/golangci-lint-action> | ||
with: | ||
version: v1.35 # without patch version | ||
only-new-issues: false # show only new issues if it's a pull request |
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,49 @@ | ||
name: MacOS | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
# Branches from forks have the form 'user:branch-name' so we only run | ||
# this job on pull_request events for branches that look like fork | ||
# branches. Without this we would end up running this job twice for non | ||
# forked PRs, once for the push and then once for opening the PR. | ||
- '**:**' | ||
|
||
jobs: | ||
build: | ||
name: Tests [Go ${{ matrix.go }} OS ${{ matrix.os }}] | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
go: [ 1.14, 1.15 ] | ||
os: [ macos-latest ] | ||
steps: | ||
- name: Set up Go ${{ matrix.go }} | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
|
||
- name: Install Go dependencies | ||
run: go mod download | ||
|
||
- name: Run golang tests on MacOS | ||
run: | | ||
mkdir ./coverage-ci | ||
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/frame.txt -covermode=atomic ./pkg/frame | ||
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/pipe.txt -covermode=atomic ./pkg/pipe | ||
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/rpc.txt -covermode=atomic ./pkg/rpc | ||
go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/socket.txt -covermode=atomic ./pkg/socket | ||
cat ./coverage-ci/*.txt > ./coverage-ci/summary.txt |
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,48 @@ | ||
name: Windows | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
# Branches from forks have the form 'user:branch-name' so we only run | ||
# this job on pull_request events for branches that look like fork | ||
# branches. Without this we would end up running this job twice for non | ||
# forked PRs, once for the push and then once for opening the PR. | ||
- '**:**' | ||
|
||
jobs: | ||
build: | ||
name: Tests [Go ${{ matrix.go }} OS ${{ matrix.os }}] | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
go: [ 1.14, 1.15 ] | ||
os: [ windows-latest ] | ||
steps: | ||
- name: Set up Go ${{ matrix.go }} | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules> | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-go- | ||
|
||
- name: Install Go dependencies | ||
run: go mod download | ||
|
||
|
||
- name: Run golang tests on Windows | ||
run: | | ||
go test -v -race -tags=debug ./pkg/frame | ||
go test -v -race -tags=debug ./pkg/pipe | ||
go test -v -race -tags=debug ./pkg/rpc | ||
go test -v -race -tags=debug ./pkg/socket |
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
Oops, something went wrong.