-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ...aaaaaaand update doc references as well * it is not obvious how go.mod should work for submods * v2 before submodule name in replace * fix docs for new go.mod approach * add benchmark for enumerate * make sure all the addresses are actually present * add linefeed at end to avoid go test error * race detector didnt like var re-use * fixes for 'golangci-lint run' * swap over from circleci/coveralls to actions * update readme's for new test badges * explicitly pick a golangci action version
- Loading branch information
1 parent
6e3a574
commit 808dd52
Showing
18 changed files
with
155 additions
and
84 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,96 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
GO111MODULE: on | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
golangci-lint: | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.20' | ||
check-latest: true | ||
cache: true | ||
|
||
- uses: golangci/golangci-lint-action@v3.7.0 | ||
with: | ||
version: latest | ||
args: --verbose | ||
|
||
|
||
test-unix: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- ubuntu | ||
- macOS | ||
go: | ||
- 20 | ||
- 21 | ||
name: '${{ matrix.platform }} | 1.${{ matrix.go }}.x' | ||
runs-on: ${{ matrix.platform }}-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.${{ matrix.go }}.x | ||
cache: true | ||
|
||
- run: | | ||
export GOBIN=$HOME/go/bin | ||
go install github.com/kyoh86/richgo@latest | ||
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH richgo test -v -race ./... | ||
|
||
|
||
test-win: | ||
name: MINGW64 | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
runs-on: windows-latest | ||
steps: | ||
|
||
- shell: bash | ||
run: git config --global core.autocrlf input | ||
|
||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: MINGW64 | ||
update: true | ||
install: > | ||
git | ||
make | ||
unzip | ||
mingw-w64-x86_64-go | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('**/go.sum') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.go }}- | ||
|
||
- run: | | ||
export GOBIN=$HOME/go/bin | ||
go install github.com/kyoh86/richgo@latest | ||
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH richgo test -v ./... |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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.