Skip to content

Commit 5520324

Browse files
committed
v2 commit
0 parents  commit 5520324

File tree

77 files changed

+7052
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+7052
-0
lines changed

.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
environment=local
2+
dbName=ecommerce
3+
MongoVaultSideCar=./localDevelopment/db-credentials.json
4+
printDBQueries=true
5+
logLevel=debug
6+
dbConnectionTimeoutInMs=10000

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: gomod
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/cibuild.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main, v2 ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: 🧱 Setup Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: '1.22'
23+
cache: true
24+
25+
- name: 🎗️ Check go mod
26+
run: |
27+
go mod tidy
28+
git diff --exit-code -- go.mod
29+
git diff --exit-code -- go.sum
30+
31+
- name: 🧹 Format
32+
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
33+
34+
- name: 🛡️ Lint
35+
uses: golangci/[email protected]
36+
with:
37+
version: latest
38+
skip-cache: true
39+
40+
- name: 🏗️ Build
41+
run: make build
42+
43+
- name: 🧪 Test
44+
run: make test
45+
46+
- name: 👮‍ Check Code Coverage
47+
run: |
48+
make ci-coverage
49+
50+
- name: 📮 Upload Code Coverage Stats
51+
uses: codecov/codecov-action@v4
52+
with:
53+
fail_ci_if_error: false # optional (default = false)
54+
files: coverage.out # optional
55+
flags: unittests # optional
56+
name: codecov-umbrella # optional
57+
verbose: true # optional (default = false)
58+
env:
59+
CODECOV_TOKEN: ${{ secrets.CODECOVTOKEN }}

0 commit comments

Comments
 (0)