Skip to content

Commit a563216

Browse files
committed
feature: Initial Commit
Signed-off-by: Valery Piashchynski <[email protected]>
1 parent 507f419 commit a563216

21 files changed

+1113
-0
lines changed

.githooks/pre-commit

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -e -o pipefail
4+
5+
# https://github.com/koalaman/shellcheck/wiki/SC2039#redirect-both-stdout-and-stderr
6+
if ! command -v golangci-lint 2>&1 /dev/null; then
7+
echo "golangci-lint is not installed"
8+
exit 1
9+
fi
10+
11+
exec golangci-lint --build-tags=race run "$@"

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Primary owners
2+
3+
@wolfy-j @rustatian

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: roadrunner-server
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Bug Report
2+
description: 🐛 File a bug report
3+
title: "[🐛 BUG]: "
4+
labels: ["B-bug", "F-need-verification"]
5+
assignees:
6+
- rustatian
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this bug report!
12+
13+
- type: checkboxes
14+
id: search-done
15+
attributes:
16+
label: No duplicates 🥲.
17+
options:
18+
- label: I have searched for a similar issue in our bug tracker and didn't find any solutions.
19+
required: true
20+
- type: textarea
21+
id: what-happened
22+
attributes:
23+
label: What happened?
24+
description: Also tell us, what did you expect to happen?
25+
placeholder: Tell us what you see!
26+
value: "A bug happened!"
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: version
31+
attributes:
32+
label: Version
33+
description: What version of our software are you running?
34+
placeholder: 2.6.0
35+
validations:
36+
required: true
37+
- type: textarea
38+
id: logs
39+
attributes:
40+
label: Relevant log output
41+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
42+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
blank_issues_enabled: false
2+
3+
contact_links:
4+
- name: ❓ Start a discussion or ask a question.
5+
url: https://github.com/roadrunner-server/roadrunner/discussions
6+
about: Please ask and answer questions here.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Feauture request
2+
description: 💡 Suggest an idea for this project
3+
title: "[💡 FEATURE REQUEST]: "
4+
labels: ["C-feature-request"]
5+
assignees:
6+
- rustatian
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to share your idea!
12+
13+
- type: dropdown
14+
id: plugin
15+
attributes:
16+
label: Plugin
17+
description: What plugin is affected?
18+
options:
19+
- GRPC
20+
- HTTP
21+
- JOBS
22+
- TCP
23+
- File server
24+
- Config
25+
- KV
26+
- Service
27+
- Server
28+
- Status
29+
30+
- type: textarea
31+
id: idea
32+
attributes:
33+
label: I have an idea!
34+
description: Clear and concise description of your idea.
35+
placeholder: Tell us what you see!
36+
value: "I have an idea, listen to me!!"
37+
validations:
38+
required: true

.github/dependabot.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
# To get started with Dependabot version updates, you'll need to specify which
7+
# package ecosystems to update and where the package manifests are located.
8+
# Please see the documentation for all configuration options:
9+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
10+
version: 2
11+
12+
updates:
13+
- package-ecosystem: gomod # See documentation for possible values
14+
directory: "/" # Location of package manifests
15+
schedule:
16+
interval: daily
17+
reviewers:
18+
- "rustatian"
19+
assignees:
20+
- "rustatian"
21+
22+
- package-ecosystem: "github-actions"
23+
directory: "/"
24+
schedule:
25+
interval: daily
26+
reviewers:
27+
- "rustatian"
28+
assignees:
29+
- "rustatian"
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
name: "CodeQL"
7+
8+
on:
9+
push:
10+
branches: [ master ]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [ master ]
14+
schedule:
15+
- cron: '0 15 * * 6'
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
# Override automatic language detection by changing the below list
26+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27+
language: [ 'go' ]
28+
# Learn more...
29+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
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
38+
39+
# Initializes the Golang environment for the CodeQL tools.
40+
# https://github.com/github/codeql-action/issues/1842#issuecomment-1704398087
41+
- name: Install Go
42+
uses: actions/setup-go@v5
43+
with:
44+
go-version-file: go.mod
45+
46+
# Initializes the CodeQL tools for scanning.
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@v3
49+
with:
50+
languages: ${{ matrix.language }}
51+
# If you wish to specify custom queries, you can do so here or in a config file.
52+
# By default, queries listed here will override any specified in a config file.
53+
# Prefix the list here with "+" to use these queries and those in the config file.
54+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v3
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 https://git.io/JvXDl
63+
64+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
65+
# and modify them (or add more) to build your code if your project
66+
# uses a compiled language
67+
68+
#- run: |
69+
# make bootstrap
70+
# make release
71+
72+
- name: Perform CodeQL Analysis
73+
uses: github/codeql-action/analyze@v3

.github/workflows/linters.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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@v4
12+
13+
- name: Set up Go
14+
uses: actions/setup-go@v5 # action page: <https://github.com/actions/setup-go>
15+
with:
16+
go-version: stable
17+
18+
- name: Run linter
19+
uses: golangci/[email protected] # Action page: <https://github.com/golangci/golangci-lint-action>
20+
with:
21+
version: v1.59 # without patch version
22+
only-new-issues: false # show only new issues if it's a pull request
23+
args: --timeout=10m --build-tags=race

.github/workflows/linux.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Linux
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
golang:
7+
name: Build (Go ${{ matrix.go }}, PHP ${{ matrix.php }}, OS ${{matrix.os}})
8+
runs-on: ${{ matrix.os }}
9+
timeout-minutes: 60
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
go: [stable]
14+
os: ["ubuntu-latest"]
15+
steps:
16+
- name: Set up Go ${{ matrix.go }}
17+
uses: actions/setup-go@v5 # action page: <https://github.com/actions/setup-go>
18+
with:
19+
go-version: ${{ matrix.go }}
20+
21+
- name: Check out code
22+
uses: actions/checkout@v4
23+
24+
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules>
25+
uses: actions/cache@v4
26+
with:
27+
path: ~/go/pkg/mod
28+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
29+
restore-keys: ${{ runner.os }}-go-
30+
31+
- name: Install Go dependencies
32+
run: go mod download
33+
34+
- name: Run golang tests with coverage
35+
run: make test_coverage
36+
37+
- uses: codecov/codecov-action@v4 # Docs: <https://github.com/codecov/codecov-action>
38+
with:
39+
file: ./coverage-ci/summary.txt
40+
fail_ci_if_error: false

0 commit comments

Comments
 (0)