feat: topup wallet returns updated wallet data #330
Workflow file for this run
This file contains hidden or 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
| name: User service - CI | |
| on: | |
| push: | |
| paths: | |
| - ".github/workflows/reusable-general-quality-ci.yml" | |
| - ".github/workflows/reusable-go-build-ci.yml" | |
| - ".github/workflows/reusable-go-quality-ci.yml" | |
| - ".github/workflows/service-user.yml" | |
| - "pkg/**" | |
| - "openapiv2/**" | |
| - "proto/**" | |
| - "tool/**" | |
| - "gateway/**" | |
| - "service/user/**" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/reusable-general-quality-ci.yml" | |
| - ".github/workflows/reusable-go-build-ci.yml" | |
| - ".github/workflows/reusable-go-quality-ci.yml" | |
| - ".github/workflows/service-user.yml" | |
| - "pkg/**" | |
| - "openapiv2/**" | |
| - "proto/**" | |
| - "tool/**" | |
| - "gateway/**" | |
| - "service/user/**" | |
| jobs: | |
| change-check: | |
| name: Check changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| has-change: ${{ steps.filter.outputs.changed }} | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| - name: Check path filters | |
| uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| changed: | |
| - '.github/workflows/reusable-general-quality-ci.yml' | |
| - '.github/workflows/reusable-go-build-ci.yml' | |
| - '.github/workflows/reusable-go-quality-ci.yml' | |
| - '.github/workflows/service-user.yml' | |
| - 'pkg/**' | |
| - 'openapiv2/**' | |
| - 'proto/**' | |
| - 'tool/**' | |
| - 'gateway/**' | |
| - 'service/user/**' | |
| general-quality-check: | |
| name: General quality check | |
| uses: ./.github/workflows/reusable-general-quality-ci.yml | |
| go-code-quality: | |
| name: Go code quality check | |
| needs: [change-check, general-quality-check] | |
| if: ${{ needs.change-check.outputs.has-change == 'true' }} | |
| uses: ./.github/workflows/reusable-go-quality-ci.yml | |
| with: | |
| target: service/user | |
| secrets: | |
| SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| compile-binary: | |
| name: Compile binary | |
| needs: [general-quality-check, go-code-quality, change-check] | |
| if: ${{ needs.change-check.outputs.has-change == 'true' }} | |
| uses: ./.github/workflows/reusable-go-compile-ci.yml | |
| with: | |
| target: service/user | |
| service: user | |
| build-push-docker: | |
| name: Build and push docker | |
| needs: [compile-binary] | |
| if: ${{ needs.change-check.outputs.has-change == 'true' }} | |
| uses: ./.github/workflows/reusable-go-build-ci.yml | |
| with: | |
| target: service/user | |
| service: user | |
| dockerfile: ./service/user/dockerfile/user.dockerfile | |
| need_go_binary: true | |
| cmd: server | |
| secrets: | |
| DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }} |