-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # client/.openapi-generator/FILES # client/.openapi-generator/VERSION # client/README.md # client/api/openapi.yaml # client/api_payments.go # client/client.go # client/docs/PaymentsApi.md # client/model_banking_circle_config.go # client/model_connector_base_info.go # client/model_currency_cloud_config.go # client/model_dummy_pay_config.go # client/model_list_connectors_response.go # client/model_list_payments_response.go # client/model_modulr_config.go # client/model_wise_config.go # client/test/api_payments_test.go # client/utils.go # main.go # swagger.yml
- Loading branch information
Showing
170 changed files
with
5,249 additions
and
3,184 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,92 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'main' | ||
- 'features/**' | ||
- 'feature/**' | ||
- 'feat/**' | ||
- 'fix/**' | ||
- 'hotfix/**' | ||
pull_request: | ||
types: [ assigned, opened, synchronize, reopened ] | ||
release: | ||
types: [ prereleased, released ] | ||
|
||
name: Main | ||
jobs: | ||
pr-style: | ||
if: github.event_name == 'pull_request' | ||
uses: numary/gh-workflows/.github/workflows/pr-style.yml@main | ||
|
||
lint: | ||
uses: formancehq/gh-workflows/.github/workflows/golang-lint.yml@main | ||
uses: numary/gh-workflows/.github/workflows/golang-lint.yml@main | ||
|
||
test: | ||
uses: formancehq/gh-workflows/.github/workflows/golang-test.yml@main | ||
uses: numary/gh-workflows/.github/workflows/golang-test.yml@main | ||
|
||
goreleaser-build: | ||
if: github.event_name != 'release' | ||
uses: numary/gh-workflows/.github/workflows/goreleaser-build.yml@main | ||
needs: | ||
- lint | ||
- test | ||
|
||
build: | ||
uses: formancehq/gh-workflows/.github/workflows/goreleaser-build.yml@main | ||
goreleaser-release: | ||
if: github.event_name == 'release' | ||
uses: numary/gh-workflows/.github/workflows/goreleaser-release.yml@main | ||
secrets: | ||
FURY_TOKEN: ${{ secrets.FURY_TOKEN }} | ||
NUMARY_GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }} | ||
needs: | ||
- lint | ||
- test | ||
|
||
build-push: | ||
name: 'Build & Push Docker image' | ||
docker-build-push: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- lint | ||
- test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
- run: go mod vendor | ||
- uses: docker/setup-qemu-action@v2 | ||
- uses: docker/setup-buildx-action@v2 | ||
- uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: "NumaryBot" | ||
password: ${{ secrets.NUMARY_GITHUB_TOKEN }} | ||
- name: Build and push | ||
- if: github.event.action == 'released' | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ghcr.io/formancehq/payments:latest,ghcr.io/formancehq/payments:${{ github.event.release.tag_name }} | ||
build-args: | | ||
APP_SHA=${{ github.sha }} | ||
VERSION=${{ github.event.release.tag_name }} | ||
- if: github.event.action == 'prereleased' | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ghcr.io/formancehq/payments:${{ github.event.release.tag_name }} | ||
build-args: | | ||
APP_SHA=${{ github.sha }} | ||
VERSION=${{ github.event.release.tag_name }} | ||
- if: github.event.action != 'released' || github.event.action != 'prereleased' | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ghcr.io/formancehq/payments:main,ghcr.io/formancehq/payments:${{ github.sha }} | ||
tags: ghcr.io/formancehq/payments:${{ github.sha }} | ||
build-args: | | ||
APP_SHA=${{ github.sha }} | ||
VERSION=develop |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.