feat: i18nify-go sdk with get_currency_symbol, convert_to_major & minor_unit functionality #303
Workflow file for this run
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
name: (i18nify-go) Unit Tests | |
on: | |
pull_request: | |
jobs: | |
# JOB to run change detection | |
check-if-i18nify-go: | |
runs-on: ubuntu-latest | |
outputs: | |
modified: ${{ steps.filter.outputs.src }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
src: | |
- 'packages/i18nify-go/**' | |
run-test: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
needs: check-if-i18nify-go | |
if: | | |
needs.check-if-i18nify-go.outputs.modified == 'true' && !(github.head_ref == 'changeset-release/master' && github.actor == 'rzpcibot') && | |
!contains(github.event.head_commit.message, '[skip ci]') | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.20' | |
- name: Run Unit Tests | |
run: | | |
cd $GITHUB_WORKSPACE/packages/i18nify-go | |
go test -v github.com/razorpay/i18nify/packages/i18nify-go/modules/... |