Skip to content

Commit

Permalink
Adding GitHub Workflow
Browse files Browse the repository at this point in the history
  Adding GitHub Workflow.

Signed-off-by: Davis Benny <[email protected]>
  • Loading branch information
DukeDavis12 committed Oct 30, 2024
1 parent 84c3122 commit 001a931
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Bug report
about: Report protocol errors
title: ""
labels: ""
assignees: ""
---

### Nature of the bug

Spec non-conformance, panic, etc.

### Steps taken to find bug

What did you do to trigger the bug?

### Steps to ensure bug is gone

How can a fix be validated?

### Optional: Reproduction

Do you have an exact list of commands for others to reproduce the problem?

### Client Debug Logs

```console
Attach large files, but place the most relevant details here
```

### Server Debug Logs

```console
Attach large files, but place the most relevant details here
```
45 changes: 45 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Lint
on:
push:
branches:
- main
pull_request:

jobs:
golangci-lint:
name: Lint Go Source
runs-on: ubuntu-latest
container:
image: golangci/golangci-lint:latest-alpine
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Lint Go source files
run: |
apk add --no-cache gcc g++ openssl-dev
export GOFLAGS=-buildvcs=false
go work init
go work use -r .
golangci-lint run ./...
shellcheck:
name: Lint Shell Scripts
runs-on: ubuntu-latest
container:
image: koalaman/shellcheck-alpine
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run ShellCheck
run: find . \( -name "*.sh" -o -name "*.bash" \) -exec shellcheck '{}' +

markdownlint:
name: Lint Documentation Markdown
runs-on: ubuntu-latest
container:
image: node:20-alpine
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Lint all markdown
run: npx markdownlint-cli2 --config .markdownlint.yml '**/*.md'
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test
on:
push:
branches:
- main
pull_request:

jobs:
go:
name: Test Go packages
runs-on: ubuntu-latest
container:
image: golang:alpine
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Test all modules
run: |
apk add --no-cache bash gcc g++ openssl-dev
export GOFLAGS=-buildvcs=false
go work init
go work use -r .
go test -v ./api/handlersTest/

0 comments on commit 001a931

Please sign in to comment.