Skip to content

Commit

Permalink
Merge pull request #505 from LerianStudio/develop
Browse files Browse the repository at this point in the history
merge: develop to main
  • Loading branch information
MartinezAvellan authored Feb 10, 2025
2 parents a2ed027 + 4c1effb commit 3ce1992
Show file tree
Hide file tree
Showing 98 changed files with 1,527 additions and 1,467 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/go-combined-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ jobs:
name: Run GoLangCI-Lint to Midaz
runs-on: ubuntu-24.04
steps:
- uses: actions/create-github-app-token@v1
- name: create github app token
if: github.event.pull_request.head.repo.fork == false
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.LERIAN_STUDIO_MIDAZ_PUSH_BOT_APP_ID }}
private-key: ${{ secrets.LERIAN_STUDIO_MIDAZ_PUSH_BOT_PRIVATE_KEY }}

- name: Import GPG key
if: github.event.pull_request.head.repo.fork == false
uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
with:
Expand All @@ -72,7 +75,8 @@ jobs:

- uses: actions/checkout@v4

- name: GoLangCI-Lint
- name: GoLangCI-Lint-Repo
if: github.event.pull_request.head.repo.fork == false
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ steps.app-token.outputs.token }}
Expand All @@ -90,6 +94,19 @@ jobs:
GIT_COMMITTER_NAME: ${{ secrets.LERIAN_CI_CD_USER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}

- name: GoLangCI-Setup-Go-fork
if: github.event.pull_request.head.repo.fork == true
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false

- name: GoLangCI-Lint-fork
if: github.event.pull_request.head.repo.fork == true
uses: golangci/golangci-lint-action@v4
with:
version: latest

GoSec:
name: Run GoSec to Midaz
runs-on: ubuntu-24.04
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-env-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ permissions:

jobs:
update-env-release:
if: github.event.pull_request.head.repo.fork == false
name: Run update VERSION in every ENV on components
runs-on: ubuntu-24.04
steps:
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
## [1.47.0-beta.3](https://github.com/LerianStudio/midaz/compare/v1.47.0-beta.2...v1.47.0-beta.3) (2025-01-31)


### Bug Fixes

* midaz test :bug: ([46f6111](https://github.com/LerianStudio/midaz/commit/46f6111e9d47a5be4e176c4dea91eef34a6c9807))
* update docs, swagger and open apis files; :bug: ([768a857](https://github.com/LerianStudio/midaz/commit/768a857995538ae7876c0f4da24c5781e756d16b))
* update go mod and sum; :bug: ([ecdec76](https://github.com/LerianStudio/midaz/commit/ecdec7648bcd5eb6c865868775f2c2a411f4b7ae))
* update libs in go mod and go sum; :bug: ([c83e52a](https://github.com/LerianStudio/midaz/commit/c83e52a8c13c2baad585d289013d4a476a080dc4))

## [1.47.0-beta.2](https://github.com/LerianStudio/midaz/compare/v1.47.0-beta.1...v1.47.0-beta.2) (2025-01-30)

## [1.47.0-beta.1](https://github.com/LerianStudio/midaz/compare/v1.46.0...v1.47.0-beta.1) (2025-01-29)


### Bug Fixes

* add env workflows ([902fc29](https://github.com/LerianStudio/midaz/commit/902fc294bc35bb16dca76435be6939ad17f0e558))
* change make up to make all-services COMMAND="up" ([10ecb01](https://github.com/LerianStudio/midaz/commit/10ecb01efbdc14952592df89b86432fd3422cc24))
* change this job to don't run if came from a fork. ([abb0628](https://github.com/LerianStudio/midaz/commit/abb0628d210017923713ec0f62cb3e08867c4911))
* change this job to don't run this step if came for a fork. ([7a6714b](https://github.com/LerianStudio/midaz/commit/7a6714b1dc11f5e2c3a41754c70ad93d8632fe42))
* remove env fork-workflows ([290630b](https://github.com/LerianStudio/midaz/commit/290630ba3c6de8310d35b342eed6ea86ad2485fb))
* remove make up from general make; ([64590ea](https://github.com/LerianStudio/midaz/commit/64590eade120d5b1c69f2eaaf03fbd5a6098fb18))
* revert pull_request ([cee4228](https://github.com/LerianStudio/midaz/commit/cee42285a3264fa93bfa8a21f109a89f9ac1fcf9))
* rollback all changes ([4cf665b](https://github.com/LerianStudio/midaz/commit/4cf665bc1a4405c83057129eca40d23cff08e4ec))
* rollback commands; ([79f1525](https://github.com/LerianStudio/midaz/commit/79f1525fb127bf1f7e27f09c8f6778829664d2d2))
* rollback first change ([fe3e296](https://github.com/LerianStudio/midaz/commit/fe3e296796339d2c07debd9bf653a1dc21c8c252))
* test pull_request_target to try to run action on midaz principal context ([38be5d9](https://github.com/LerianStudio/midaz/commit/38be5d95569f37bc8f163b51396f74570cc8e158))

## [1.46.0](https://github.com/LerianStudio/midaz/compare/v1.45.0...v1.46.0) (2025-01-24)


Expand Down
4 changes: 2 additions & 2 deletions STRUCTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The project is structured into several key directories, each serving specific ro
│   │   │   │   ├── account
│   │   │   │   ├── asset
│   │   │   │   ├── portfolio
│   │   │   │   └── product
│   │   │   │   └── segment
│   │   │   ├── gen
│   │   │   │   └── mock
│   │   │   │   ├── account
Expand All @@ -47,7 +47,7 @@ The project is structured into several key directories, each serving specific ro
│   │   │   │   ├── metadata
│   │   │   │   ├── organization
│   │   │   │   ├── portfolio
│   │   │   │   └── product
│   │   │   │   └── segment
│   │   │   ├── ports
│   │   │   │   └── http
│   │   │   └── service
Expand Down
2 changes: 1 addition & 1 deletion chocolatey/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$version = 'v1.46.0'
$version = 'v1.47.0'

$ErrorActionPreference = 'Stop';

Expand Down
2 changes: 1 addition & 1 deletion components/audit/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ENV_NAME=production

# APP
VERSION=v1.46.0
VERSION=v1.47.0
SERVER_PORT=3005
SERVER_ADDRESS=:${SERVER_PORT}

Expand Down
4 changes: 4 additions & 0 deletions components/audit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ FROM golang:1.23-alpine AS builder

WORKDIR /audit-app

COPY go.mod go.sum ./

RUN go mod download

COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /app components/audit/cmd/app/main.go
Expand Down
10 changes: 5 additions & 5 deletions components/auth/setup/00_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ INSERT INTO "casbin_lerian_enforcer_rule" ("ptype", "v0", "v1", "v2", "v3", "v4"
('p', 'developer_role', 'portfolio', 'get', '', '', ''),
('p', 'developer_role', 'portfolio', 'patch', '', '', ''),
('p', 'developer_role', 'portfolio', 'put', '', '', ''),
('p', 'developer_role', 'product', 'post', '', '', ''),
('p', 'developer_role', 'product', 'get', '', '', ''),
('p', 'developer_role', 'product', 'patch', '', '', ''),
('p', 'developer_role', 'product', 'put', '', '', ''),
('p', 'developer_role', 'segment', 'post', '', '', ''),
('p', 'developer_role', 'segment', 'get', '', '', ''),
('p', 'developer_role', 'segment', 'patch', '', '', ''),
('p', 'developer_role', 'segment', 'put', '', '', ''),
('p', 'developer_role', 'account', 'post', '', '', ''),
('p', 'developer_role', 'account', 'get', '', '', ''),
('p', 'developer_role', 'account', 'patch', '', '', ''),
Expand All @@ -70,7 +70,7 @@ INSERT INTO "casbin_lerian_enforcer_rule" ("ptype", "v0", "v1", "v2", "v3", "v4"
('p', 'user_role', 'ledger', 'get', '', '', ''),
('p', 'user_role', 'asset', 'get', '', '', ''),
('p', 'user_role', 'portfolio', 'get', '', '', ''),
('p', 'user_role', 'product', 'get', '', '', ''),
('p', 'user_role', 'segment', 'get', '', '', ''),
('p', 'user_role', 'account', 'get', '', '', ''),
('p', 'user_role', 'transaction', 'get', '', '', ''),
('p', 'user_role', 'operation', 'get', '', '', ''),
Expand Down
4 changes: 2 additions & 2 deletions components/auth/setup/init_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@
"ledger",
"organization",
"portfolio",
"product",
"segment",
"transaction",
"operation",
"asset-rate"
Expand Down Expand Up @@ -879,7 +879,7 @@
"ledger",
"organization",
"portfolio",
"product",
"segment",
"transaction",
"operation",
"asset-rate"
Expand Down
2 changes: 1 addition & 1 deletion components/ledger/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ENV_NAME=production

# APP
VERSION=v1.46.0
VERSION=v1.47.0
SERVER_PORT=3000
SERVER_ADDRESS=:${SERVER_PORT}

Expand Down
4 changes: 4 additions & 0 deletions components/ledger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ FROM golang:1.23-alpine AS builder

WORKDIR /ledger-app

COPY go.mod go.sum ./

RUN go mod download

COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /app components/ledger/cmd/app/main.go
Expand Down
Loading

0 comments on commit 3ce1992

Please sign in to comment.