Skip to content

Commit

Permalink
Merge pull request #1 from formancehq/main
Browse files Browse the repository at this point in the history
update
  • Loading branch information
br-rafaelbarros committed Nov 7, 2023
2 parents 565dedc + 03c4b43 commit e20f3f9
Show file tree
Hide file tree
Showing 473 changed files with 38,235 additions and 25,346 deletions.
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
vendor
sdk
.git
.devbox
.direnv
.github
.moon
sdks
config
docs
nix
openapi
tests
worktrees
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/api/ @formancehq/dev-backend
/cmd/ @formancehq/dev-backend
/config/ @formancehq/dev-backend
/core/ @formancehq/dev-backend
/ledger/ @formancehq/dev-backend
*.go @formancehq/dev-backend

/.devcontainer @flemzord
/.github @flemzord
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: FormanceHQ
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

**Expected behavior**
A clear and concise description of what you expected to happen.

**Logs**
If applicable, add logs to help explain your problem.

**Environment (please complete the following information):**
- OS: [e.g. ubuntu 20.04]
- Numary Version [e.g. 1.0.0-beta.4]

**Additional context**
Add any other context about the problem here.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement, rfc
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Summary**

**Solution proposal**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
8 changes: 8 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_sdk_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SDK : OPEN API GENERATOR NAME

__Please add a description to this PR.__

## How to deploy

__Please provide steps to deploy the generated sdk to official channels.__
__Please be as exhaustive as possible__
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Title

__Please add a description to this PR.__

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Refactoring / Technical debt

## What parts of the code are impacted ?
__Please describe the impacted parts of the code.__

# Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
23 changes: 23 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'@domain/core':
- core/*
- core/**/*

'@domain/api':
- api/*
- api/**/*

'@domain/ledger':
- ledger/*
- ledger/**/*

'@domain/storage':
- storage/*
- storage/**/*

'@domain/cmd':
- cmd/*
- cmd/**/*

'@domain/ci':
- .github/*
- .github/**/*
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- main

name: Main
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache-dependency-path: go.sum
cache: true
- run: task tests
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
name: 'Ledger'
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)
71 changes: 71 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Ledger - Release
on:
push:
tags:
- 'v*.*.*'

jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache-dependency-path: go.sum
cache: true
- run: task tests
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
name: 'Ledger'
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)

GoReleaser:
name: GoReleaser
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
needs:
- Tests
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: "NumaryBot"
password: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser-pro
version: latest
install-only: true
- run: goreleaser release --clean -f .goreleaser.ledger.yml
env:
GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY_OSS }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
numary
coverage*
/dist/
cmd/control/*
Expand All @@ -13,3 +12,7 @@ sdk/sdks
.env
sqlstorage.test
ledger.test
antlr-*-complete.jar
go.work
go.work.sum
benchs
28 changes: 0 additions & 28 deletions .golangci.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .goreleaser-darwin.yml

This file was deleted.

Loading

0 comments on commit e20f3f9

Please sign in to comment.