mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
* fix: correct HTTP error handling in gateway * refactor: migrate database and ORM to internal modules * feat: introduce taskfile build system for improved workflow management * refactor: update taskfiles to use relative paths * feat: add profile status field * refactor: move rendering logic to context package * fix: improve error handling in credentials retrieval * refactor: optimize HTTP request handling in Wasm environment * refactor: refactor config loading in motr command * chore: add process-compose for service management * chore: remove default task and update gum format command * fix: update project dependencies * refactor: improve code readability and maintainability * refactor: consolidate error handling components * refactor: update index handler to use new context package * refactor: consolidate database scripts and move to deploy directory * feat: Update flake.nix with development tools and environment configuration * fix: ignore flake.lock file * refactor: migrate build process to use taskfiles for improved modularity and maintainability * refactor: improve GatewayContext and reorganize handlers * refactor: Remove unused profile creation functions * (chore): templ generation * test: add test file for vaults.go * maintenance: remove defunct Discord server link * docs: update checks workflow documentation * test: remove obsolete vaults test file * refactor: move version bumping logic to release workflow
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
version: "3"
|
|
|
|
vars:
|
|
VERSION:
|
|
sh: git describe --tags --abbrev=0
|
|
COMMIT:
|
|
sh: git rev-parse --short HEAD
|
|
ROOT:
|
|
sh: git rev-parse --show-toplevel
|
|
OS:
|
|
sh: uname -s
|
|
TASKS:
|
|
sh: task -l
|
|
DOPPLER_TOKEN:
|
|
sh: skate get DOPPLER_NETWORK
|
|
|
|
includes:
|
|
hway:
|
|
taskfile: .taskfiles/Hway.yml
|
|
ipfs:
|
|
taskfile: .taskfiles/IPFS.yml
|
|
postgres:
|
|
taskfile: .taskfiles/Postgres.yml
|
|
sonrd:
|
|
taskfile: .taskfiles/Sonrd.yml
|
|
synapse:
|
|
taskfile: .taskfiles/Synapse.yml
|
|
tigerbeetle:
|
|
taskfile: .taskfiles/TigerBeetle.yml
|
|
|
|
tasks:
|
|
default:
|
|
cmds:
|
|
- gh run ls -L 3
|
|
- gum format -- "# Sonr ({{.OS}}-{{.VERSION}})" " - ({{.COMMIT}}) {{.ROOT}}"
|
|
- task -l -j | jq -r '.tasks[].name' | fzf --height=16 | xargs task
|
|
silent: true
|
|
|
|
deps:
|
|
desc: Install go dependencies
|
|
silent: true
|
|
vars:
|
|
DEPS: ["github.com/apple/pkl-go/cmd/pkl-gen-go@latest", "github.com/sqlc-dev/sqlc/cmd/sqlc@latest", "github.com/goreleaser/goreleaser/v2@latest","github.com/a-h/templ/cmd/templ@latest"]
|
|
cmds:
|
|
- for: { var: DEPS }
|
|
cmd: gum spin --spinner dot --title "Installing go dependencies..." -- go install {{.ITEM}}
|
|
|
|
pkl-gen:
|
|
desc: Generate PKL files
|
|
silent: true
|
|
dir: "pkl/sonr.net"
|
|
vars:
|
|
FILES: ["Hway.pkl", "Motr.pkl", "UCAN.pkl"]
|
|
cmds:
|
|
- for: { var: FILES }
|
|
cmd: gum spin --spinner dot --title "Generating PKL in Go..." -- pkl-gen-go {{.ITEM}}
|
|
|
|
proto-gen:
|
|
desc: Generate proto files
|
|
silent: true
|
|
cmd: gum spin --spinner dot --title "Generating Protobufs..." -- make proto-gen
|
|
|
|
sqlc-gen:
|
|
desc: Generate SQLC files
|
|
silent: true
|
|
cmds:
|
|
- gum spin --spinner dot --title "Generating SQLC..." -- sqlc generate -f internal/database/sqlc.yaml
|
|
|
|
templ-gen:
|
|
desc: Generate templ files
|
|
silent: true
|
|
cmd: gum spin --spinner dot --title "Generating Templ..." -- templ generate
|