Skip to content

Commit

Permalink
Initial public commit
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Peereboom <[email protected]>
Co-authored-by: ClaytonNorthey92 <[email protected]>
Co-authored-by: Joel Sing <[email protected]>
Co-authored-by: Joshua Sing <[email protected]>
Co-authored-by: Maxwell Sanchez <[email protected]>
Co-authored-by: John C. Vernaleo <[email protected]>
  • Loading branch information
6 people committed Feb 26, 2024
0 parents commit 7c778c0
Show file tree
Hide file tree
Showing 87 changed files with 20,123 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/bin/
/dist/
/pkg/
/.gocache/
*.sw?
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "Bug Report"
description: "Report a bug to help us improve."
labels: [ "status: triage", "type: bug" ]
body:
- type: markdown
attributes:
value: |
Please **do not** use this template for questions.
Have a question or need help? Join our [Discord server](https://discord.gg/8z9antYtus)!
- type: checkboxes
attributes:
label: "Confirmation"
description: "Please confirm that you have done the following before creating this issue."
options:
- label: "I have checked for similar issues."
required: true

- type: textarea
attributes:
label: "Describe the bug"
description: "Please provide a clear and concise description of what the issue is."
validations:
required: true

- type: textarea
attributes:
label: "Expected behaviour"
description: "What should have happened?"
validations:
required: true

- type: textarea
attributes:
label: "Environment"
description: |
Please provide information about your operating environment here.
value: |
Version: <!-- Hemi Network v1.2.3 -->
Operating System: <!-- e.g. Windows 11, macOS 14.2.1, Ubuntu 24.04 -->
Architecture: <!-- amd64, arm64 -->
- type: textarea
attributes:
label: "Additional Information"
description: |
Please provide any additional information that could help with reproducing and fixing this bug.
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: "Discord"
url: "https://discord.gg/8z9antYtus"
about: "Have a question or need help? Join our Discord server!"
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Feature Request"
description: "Suggest a new feature or a change to existing functionality"
labels: [ "status: triage", "type: enhancement" ]
body:
- type: markdown
attributes:
value: |
Please **do not** use this template for questions.
Have a question or need help? Join our [Discord server](https://discord.gg/8z9antYtus)!
- type: checkboxes
attributes:
label: "Confirmation"
description: "Please confirm that you have done the following before creating this issue."
options:
- label: "I have checked for similar issues."
required: true

- type: textarea
attributes:
label: "Problem"
description: "Please provide a clear and concise description of what the problem is."
validations:
required: false

- type: textarea
attributes:
label: "Suggested solution"
description: "How do you suggest we solve this problem?"
validations:
required: true

- type: textarea
attributes:
label: "Additional Information"
description: |
Please provide any additional information that could help us understand the requested change.
validations:
required: false
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**Summary**
<!-- A short and concise description of what this pull request does (in present tense). -->
<!-- If this pull request is related to an issue, add "Fixes #<id>" to the end of your summary. -->

**Changes**
<!-- A list of changes made by this pull request. -->
28 changes: 28 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
changelog:
exclude:
labels:
- "type: dependencies"
- "area: ci"
categories:
- title: "⚠️ Breaking changes"
labels:
- "status: breaking"
- title: "✨ Additions"
labels:
- "type: feature"
- title: "🐛 Fixes"
labels:
- "type: bug"
- title: "🔧 Improvements"
labels:
- "type: enhancement"
- "type: refactor"
- title: "📖 Documentation"
labels:
- "type: documentation"
- title: "🧪 Test coverage"
labels:
- "type: test"
- title: "⚙️ Other"
labels:
- "*"
70 changes: 70 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Copyright (c) 2024 Hemi Labs, Inc.
# Use of this source code is governed by the MIT License,
# which can be found in the LICENSE file.

# GitHub Actions workflow to lint, build and test.
name: "Go"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
workflow_call:

concurrency:
group: "go-${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: "${{ github.event.action == 'push' || github.event.action == 'pull_request' }}"

permissions:
contents: read

jobs:
build:
name: "Build"
runs-on: "ubuntu-latest"
strategy:
matrix:
go-version: [ "1.22.x" ]
services:
postgres:
image: postgres:16-alpine
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: "postgres"
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Setup Go ${{ matrix.go-version }}"
uses: actions/setup-go@v5
with:
go-version: "${{ matrix.go-version }}"
cache: true
check-latest: true

- name: "Download and verify dependencies"
run: make deps

- name: "make race"
continue-on-error: true
run: make race

- name: "make"
continue-on-error: true
env:
PGTESTURI: "postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable"
run: |
make
git diff --exit-code
- name: "make web popm"
continue-on-error: true
run: |
cd web && make
39 changes: 39 additions & 0 deletions .github/workflows/network-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (c) 2024 Hemi Labs, Inc.
# Use of this source code is governed by the MIT License,
# which can be found in the LICENSE file.

# GitHub Actions workflow to run e2e network tests.
name: "E2E Network Test"
on:
workflow_dispatch: # Manually triggered

concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true

permissions:
contents: read

jobs:
test:
name: "Test"
runs-on: "ubuntu-latest"
strategy:
matrix:
go-version: [ "1.22.x" ]
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Setup Go ${{ matrix.go-version }}"
uses: actions/setup-go@v5
with:
go-version: "${{ matrix.go-version }}"
cache: true
check-latest: true

- name: "Download and verify dependencies"
run: make deps

- name: "make networktest"
run: make networktest
Loading

0 comments on commit 7c778c0

Please sign in to comment.