Skip to content

Commit

Permalink
github actions added
Browse files Browse the repository at this point in the history
Signed-off-by: Serdar Ormanlı <[email protected]>
  • Loading branch information
Serdar Ormanlı committed Sep 28, 2020
1 parent c493be5 commit 52692f5
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**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**
A clear and concise description of what you want to happen.

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

**Additional context**
Add any other context or screenshots about the feature request here.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: proton build
on:
push:
branches:
- "*"

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@master

- name: Set up Go (1.15)
uses: actions/setup-go@v1
with:
go-version: 1.15

- name: Linter
run: |
docker run --rm -v $(pwd):/data cytopia/golint -set_exit_status=1 ./...
- name: Test
run: |
go test -v -race -coverprofile=coverage.txt -covermode=atomic -tags=integration ./...
- name: Build
run: |
make build
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: proton release
on:
push:
tags:
- "*"

jobs:

release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@master

- name: Unshallow
run: git fetch --prune --unshallow

- name: Set up Go (1.15)
uses: actions/setup-go@v1
with:
go-version: 1.15

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion internal/protoparser/protoparser_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package protoparser

import (
"context"
"net/http"
"net/url"
"path/filepath"
Expand Down Expand Up @@ -115,7 +116,7 @@ func Test_HTTPParser(t *testing.T) {
test.prepare()
parse, err := url.Parse(test.url)
assert.NoError(t, err)
parser, filename, err := NewHTTP(parse)
parser, filename, err := NewHTTP(context.TODO(), parse)
test.assert(parser, filename, err)
})
}
Expand Down

0 comments on commit 52692f5

Please sign in to comment.