Compare commits

...
Author SHA1 Message Date
phoenix 643d4240dc Added user sub package 2025-11-01 17:00:13 -04:00
phoenix 9398e36269 Workflow fix 2025-10-31 17:04:13 -04:00
phoenix aedaaa1de7 Updated workflow 2025-10-31 16:55:38 -04:00
phoenix a4317b4b22 Hard coding version for now 2025-10-31 14:48:38 -04:00
phoenix c654aa2d2e Added print statement 2025-10-31 14:46:20 -04:00
phoenix 8751050126 Updated workflow 2025-10-31 14:42:22 -04:00
3 changed files with 23 additions and 3 deletions
+4 -2
View File
@@ -16,14 +16,16 @@ jobs:
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: '1.25.3'
- name: Create version
id: version
run: |
VERSION=$(git tag --sort=-version:refname | sed 's/-\(main\|devel\).*//' | uniq | head -n 1)
echo "Creating version"
VERSION="0.0.2"
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
BRANCH_REF="${{ gitea.ref }}"
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
+6 -1
View File
@@ -14,9 +14,14 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '1.25.3'
- name: Configure Git for SSH
run: |
git config --global url."git@git.kundeng.us:".insteadOf "https://git.kundeng.us/"
go env -w GOPRIVATE=git.kundeng.us/phoenix/*
- name: Download dependencies
run: go mod download
run: |
go mod download
- name: Run tests
run: go test -v ./... # Runs all tests in the project
+13
View File
@@ -0,0 +1,13 @@
package user
import (
"github.com/google/uuid"
)
type User struct {
Id uuid.UUID `json:"id"`
PhoneNumber string `json:"phone_number"`
Username string `json:"username"`
Password string `json:"password"`
}