Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Commit 953c7eb

Browse files
authored
[#75]: feat(proto): add support for multiple proto files
2 parents 09e1f93 + 251a15e commit 953c7eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1166
-352
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: B-bug, F-need-verification
6+
assignees: rustatian
7+
8+
---
9+
10+
---
11+
name: Bug Report
12+
about: Issue in HTTP module <replace>
13+
labels: A-network <replace>
14+
---
15+
<!--
16+
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
17+
along with any information you feel relevant to replicating the bug.
18+
-->
19+
20+
I tried this code:
21+
22+
```go
23+
<code>
24+
```
25+
26+
I expected to see this happen: *explanation*
27+
28+
Instead, this happened: *explanation*
29+
30+
The version of RR used: *explanation*
31+
32+
My `.rr.yaml` configuration is: *config*
33+
34+
Errortrace, Backtrace or Panictrace
35+
```
36+
<backtrace>
37+
```
38+
39+
</p>
40+
</details>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FEATURE REQUEST]"
5+
labels: C-feature-request
6+
assignees: rustatian
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: gomod # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: daily
12+
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: daily

.github/pull_request_template.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Reason for This PR
2+
3+
`[Author TODO: add issue # or explain reasoning.]`
4+
5+
## Description of Changes
6+
7+
`[Author TODO: add description of changes.]`
8+
9+
## License Acceptance
10+
11+
By submitting this pull request, I confirm that my contribution is made under
12+
the terms of the MIT license.
13+
14+
## PR Checklist
15+
16+
`[Author TODO: Meet these criteria.]`
17+
`[Reviewer TODO: Verify that these criteria are met. Request changes if not]`
18+
19+
- [ ] All commits in this PR are signed (`git commit -s`).
20+
- [ ] The reason for this PR is clearly provided (issue no. or explanation).
21+
- [ ] The description of changes is clear and encompassing.
22+
- [ ] Any required documentation changes (code and docs) are included in this PR.
23+
- [ ] Any user-facing changes are mentioned in `CHANGELOG.md`.
24+
- [ ] All added/changed functionality is tested.

.github/workflows/codeql-analysis.yml

Lines changed: 33 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ name: "CodeQL"
77

88
on:
99
push:
10-
branches: [master]
10+
branches: [ master ]
1111
pull_request:
1212
# The branches below must be a subset of the branches above
13-
branches: [master]
13+
branches: [ master ]
1414
schedule:
15-
- cron: '0 12 * * 6'
15+
- cron: '0 15 * * 6'
1616

1717
jobs:
1818
analyze:
@@ -24,48 +24,43 @@ jobs:
2424
matrix:
2525
# Override automatic language detection by changing the below list
2626
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27-
language: ['go']
27+
language: [ 'go' ]
2828
# Learn more...
2929
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
3030

3131
steps:
32-
- name: Checkout repository
33-
uses: actions/checkout@v2
34-
with:
35-
# We must fetch at least the immediate parents so that if this is
36-
# a pull request then we can checkout the head.
37-
fetch-depth: 2
32+
- name: Checkout repository
33+
uses: actions/checkout@v2
34+
with:
35+
# We must fetch at least the immediate parents so that if this is
36+
# a pull request then we can checkout the head.
37+
fetch-depth: 2
3838

39-
# If this run was triggered by a pull request event, then checkout
40-
# the head of the pull request instead of the merge commit.
41-
- run: git checkout HEAD^2
42-
if: ${{ github.event_name == 'pull_request' }}
39+
# Initializes the CodeQL tools for scanning.
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@v1
42+
with:
43+
languages: ${{ matrix.language }}
44+
# If you wish to specify custom queries, you can do so here or in a config file.
45+
# By default, queries listed here will override any specified in a config file.
46+
# Prefix the list here with "+" to use these queries and those in the config file.
47+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4348

44-
# Initializes the CodeQL tools for scanning.
45-
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
47-
with:
48-
languages: ${{ matrix.language }}
49-
# If you wish to specify custom queries, you can do so here or in a config file.
50-
# By default, queries listed here will override any specified in a config file.
51-
# Prefix the list here with "+" to use these queries and those in the config file.
52-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
50+
# If this step fails, then you should remove it and run the build manually (see below)
51+
- name: Autobuild
52+
uses: github/codeql-action/autobuild@v1
5353

54-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55-
# If this step fails, then you should remove it and run the build manually (see below)
56-
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
54+
# ℹ️ Command-line programs to run using the OS shell.
55+
# 📚 https://git.io/JvXDl
5856

59-
# ℹ️ Command-line programs to run using the OS shell.
60-
# 📚 https://git.io/JvXDl
57+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
58+
# and modify them (or add more) to build your code if your project
59+
# uses a compiled language
6160

62-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63-
# and modify them (or add more) to build your code if your project
64-
# uses a compiled language
61+
#- run: |
62+
# make bootstrap
63+
# make release
6564

66-
#- run: |
67-
# make bootstrap
68-
# make release
69-
70-
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
65+
- name: Perform CodeQL Analysis
66+
uses: github/codeql-action/analyze@v1

.github/workflows/linters.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Linters
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
golangci-lint:
7+
name: Golang-CI (lint)
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out code
11+
uses: actions/checkout@v2
12+
13+
- name: Run linter
14+
uses: golangci/golangci-lint-action@v2 # Action page: <https://github.com/golangci/golangci-lint-action>
15+
with:
16+
version: v1.43 # without patch version
17+
only-new-issues: false # show only new issues if it's a pull request
18+
args: --timeout=10m

.github/workflows/linux.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Linux
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- beta
8+
- stable
9+
tags-ignore:
10+
- "**"
11+
paths-ignore:
12+
- "**.md"
13+
- "**.yaml"
14+
- "**.yml"
15+
pull_request:
16+
paths-ignore:
17+
- "**.md"
18+
- "**.yaml"
19+
- "**.yml"
20+
21+
jobs:
22+
golang:
23+
name: Build (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}})
24+
runs-on: ${{ matrix.os }}
25+
timeout-minutes: 60
26+
strategy:
27+
fail-fast: true
28+
matrix:
29+
php: ["7.4", "8.0", "8.1"]
30+
go: ["1.17.4"]
31+
os: ["ubuntu-latest"]
32+
steps:
33+
- name: Set up Go ${{ matrix.go }}
34+
uses: actions/setup-go@v2 # action page: <https://github.com/actions/setup-go>
35+
with:
36+
go-version: ${{ matrix.go }}
37+
38+
- name: Set up PHP ${{ matrix.php }}
39+
uses: shivammathur/setup-php@v2 # action page: <https://github.com/shivammathur/setup-php>
40+
with:
41+
php-version: ${{ matrix.php }}
42+
extensions: sockets, grpc
43+
44+
- name: Check out code
45+
uses: actions/checkout@v2
46+
47+
- name: Get Composer Cache Directory
48+
id: composer-cache
49+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
50+
51+
- name: Init Composer Cache # Docs: <https://git.io/JfAKn#php---composer>
52+
uses: actions/cache@v2
53+
with:
54+
path: ${{ steps.composer-cache.outputs.dir }}
55+
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
56+
restore-keys: ${{ runner.os }}-composer-
57+
58+
- name: Install Composer dependencies
59+
run: composer update --prefer-dist --no-progress --ansi
60+
61+
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules>
62+
uses: actions/cache@v2
63+
with:
64+
path: ~/go/pkg/mod
65+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
66+
restore-keys: ${{ runner.os }}-go-
67+
68+
- name: Install Go dependencies
69+
run: go mod download
70+
71+
- name: Go mod tidy
72+
run: go mod tidy
73+
74+
- name: Install protoc
75+
uses: arduino/setup-protoc@v1
76+
with:
77+
version: '3.x'
78+
79+
- name: Run golang tests with coverage
80+
run: make test
81+
82+
- uses: codecov/codecov-action@v2 # Docs: <https://github.com/codecov/codecov-action>
83+
with:
84+
file: ./coverage-ci/summary.txt
85+
fail_ci_if_error: false

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ example/vendor/
88
go.sum
99
builds/
1010
.phpunit.result.cache
11+
vendor_php
12+
coverage-ci

0 commit comments

Comments
 (0)