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

Commit

Permalink
refactor(app): Deep application refactoring (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam authored Mar 27, 2021
1 parent eab60f3 commit 3eeefb4
Show file tree
Hide file tree
Showing 48 changed files with 1,574 additions and 798 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.dockerignore
.git
.gitignore
.github
.github
/rr
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{yml, yaml, sh, conf}]
indent_size = 2

[{Makefile, go.mod, *.go}]
indent_style = tab
30 changes: 15 additions & 15 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@ about: Create a report to help us improve
title: "[BUG]"
labels: B-bug, F-need-verification
assignees: 48d90782

---

---
name: Bug Report
about: Issue in HTTP module <replace>
labels: A-network <replace>
---
<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```go
<code>
// code
```

I expected to see this happen: *explanation*

Instead, this happened: *explanation*

The version of RR used: *explanation*
The **version of RR** used: *explanation*

Errortrace, Backtrace or Panictrace
```
<backtrace>
The **operation system** used: *explanation*

RR configuration file content:

```yaml
# Paste here your `.rr.yaml` file content
```

</p>
</details>
Errortrace, Backtrace or Panictrace:

```text
// backtrace
```
13 changes: 8 additions & 5 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ about: Suggest an idea for this project
title: "[FEATURE REQUEST]"
labels: C-feature-request
assignees: 48d90782, wolfy-j

---

**Is your feature request related to a problem? Please describe.**
### Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
### Describe the solution you'd like

A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
### Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
### Additional context

Add any other context or screenshots about the feature request here.
25 changes: 23 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,32 @@
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2

updates:
- package-ecosystem: gomod # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: daily

reviewers:
- "48d90782"
assignees:
- "48d90782"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
reviewers:
- "48d90782"
assignees:
- "48d90782"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: daily
reviewers:
- "48d90782"
assignees:
- "48d90782"
3 changes: 1 addition & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

## License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

## PR Checklist

Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/build.yaml

This file was deleted.

44 changes: 4 additions & 40 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
# For most projects, this workflow file will not need changing; you simply need to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
# You may wish to alter this file to override the set of languages analyzed, or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '0 15 * * 6'
Expand All @@ -18,54 +15,21 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: [ 'go' ]
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

language: [ 'go' ] # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
# We must fetch at least the immediate parents so that if this is a pull request then we can checkout the head
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ jobs:
CGO_ENABLED: 0
LDFLAGS: >-
-s
-X github.com/spiral/roadrunner-binary/v2/cli.Version=${{ steps.values.outputs.version }}
-X github.com/spiral/roadrunner-binary/v2/cli.BuildTime=${{ steps.values.outputs.timestamp }}
-X github.com/spiral/roadrunner-binary/v2/internal/meta.version=${{ steps.values.outputs.version }}
-X github.com/spiral/roadrunner-binary/v2/internal/meta.buildTime=${{ steps.values.outputs.timestamp }}
run: |
go build -trimpath -ldflags "$LDFLAGS" -o "./${{ steps.values.outputs.binary-name }}" main.go
go build -trimpath -ldflags "$LDFLAGS" -o "./${{ steps.values.outputs.binary-name }}" ./cmd/rr
stat "./${{ steps.values.outputs.binary-name }}"
- name: Generate distributive directory name
Expand Down
Loading

0 comments on commit 3eeefb4

Please sign in to comment.