-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating license headers, bumping CI/CD dependencies, and transitioni…
…ng to Loophole logging library
- Loading branch information
1 parent
14cb4ee
commit c50c0b4
Showing
31 changed files
with
89 additions
and
437 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 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://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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 |
---|---|---|
@@ -1,96 +1,65 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
on: [pull_request] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: go-cache-paths | ||
run: | | ||
echo "::set-output name=go-build::$(go env GOCACHE)" | ||
echo "::set-output name=go-mod::$(go env GOMODCACHE)" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Go Build Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.go-cache-paths.outputs.go-build }} | ||
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Go Mod Cache | ||
uses: actions/cache@v2 | ||
uses: actions/setup-go@v5 | ||
with: | ||
path: ${{ steps.go-cache-paths.outputs.go-mod }} | ||
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | ||
go-version: '1.22' | ||
cache: true | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
uses: arduino/setup-protoc@v3 | ||
|
||
- name: Install protoc-gen plugin | ||
working-directory: ./protoc-gen-go-frpc | ||
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | ||
|
||
- name: Install frpc plugin for protoc-gen | ||
working-directory: ./ | ||
run: go install ./protoc-gen-go-frpc | ||
|
||
- name: Run generator | ||
working-directory: ./examples/test | ||
run: protoc --go-frpc_out=../../pkg/generator test.proto | ||
|
||
- name: Test | ||
run: go test -v ./... | ||
|
||
tests-race: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: go-cache-paths | ||
run: | | ||
echo "::set-output name=go-build::$(go env GOCACHE)" | ||
echo "::set-output name=go-mod::$(go env GOMODCACHE)" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Go Build Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.go-cache-paths.outputs.go-build }} | ||
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
|
||
- name: Go Mod Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.go-cache-paths.outputs.go-mod }} | ||
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | ||
go-version: '1.22' | ||
cache: true | ||
|
||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
uses: arduino/setup-protoc@v3 | ||
|
||
- name: Install protoc-gen plugin | ||
working-directory: ./protoc-gen-go-frpc | ||
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | ||
|
||
- name: Install frpc plugin for protoc-gen | ||
working-directory: ./ | ||
run: go install ./protoc-gen-go-frpc | ||
|
||
- name: Run generator | ||
working-directory: ./examples/test | ||
run: protoc --go-frpc_out=../../pkg/generator test.proto | ||
|
||
- name: Test with Race Conditions | ||
run: go test -race -v ./... | ||
timeout-minutes: 15 | ||
timeout-minutes: 15 |
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 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 |
---|---|---|
|
@@ -166,7 +166,6 @@ package main | |
|
||
import ( | ||
"context" | ||
"github.com/rs/zerolog" | ||
"frpc/echo" | ||
"log" | ||
"os" | ||
|
Oops, something went wrong.