Skip to content

Commit

Permalink
Updating license headers, bumping CI/CD dependencies, and transitioni…
Browse files Browse the repository at this point in the history
…ng to Loophole logging library
  • Loading branch information
ShivanshVij committed Sep 3, 2024
1 parent 14cb4ee commit c50c0b4
Show file tree
Hide file tree
Showing 31 changed files with 89 additions and 437 deletions.
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

13 changes: 0 additions & 13 deletions .github/ISSUE_TEMPLATE/other.md

This file was deleted.

35 changes: 0 additions & 35 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/dependabot.yml
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"
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Golang
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false
go-version: '1.22'
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
71 changes: 20 additions & 51 deletions .github/workflows/tests.yaml
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
13 changes: 0 additions & 13 deletions .markdownlint.yaml

This file was deleted.

62 changes: 0 additions & 62 deletions CHANGELOG.md

This file was deleted.

12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@

[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![Tests](https://github.com/loopholelabs/frpc-go/actions/workflows/tests.yaml/badge.svg)](https://github.com/loopholelabs/frpc-go/actions/workflows/tests.yaml)
[![Discord](https://dcbadge.vercel.app/api/server/JYmFhtdPeu?style=flat)](https://loopholelabs.io/discord)
![Go Version](https://img.shields.io/badge/go%20version-%3E=1.22-61CFDD.svg)


This is the [Go](http://golang.org) implementation of [fRPC](https://frpc.io), a modern RPC framework
designed for high performance and stability, that uses the [frisbee-go](https://github.com/loopholelabs/frisbee-go) messaging framework under the hood.

**This library requires Go1.18 or later.**

## Important note about releases and stability

This repository generally follows [Semantic Versioning](https://semver.org/). However, **this library is currently in
Alpha** and is still considered experimental. Breaking changes of the library will _not_ trigger a new major release. The
same is true for selected other new features explicitly marked as
**EXPERIMENTAL** in [the changelog](/CHANGELOG.md).

## Usage and Documentation

Usage instructions and documentation for fRPC is available at [https://frpc.io/](https://frpc.io/).
Expand Down
19 changes: 0 additions & 19 deletions dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion docs/getting-started/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ package main

import (
"context"
"github.com/rs/zerolog"
"frpc/echo"
"log"
"os"
Expand Down
Loading

0 comments on commit c50c0b4

Please sign in to comment.