This repository was archived by the owner on Aug 4, 2026. It is now read-only.
fix(useIAP): forward PurchaseOptions in getAvailablePurchases and res… #429
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: CI - Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/ci-test.yml' | |
| - '.github/actions/**' | |
| - 'src/**' | |
| - 'plugin/**' | |
| - 'example/screens/**' | |
| - 'example/components/**' | |
| - 'example/__tests__/**' | |
| - 'jest.config.*' | |
| - 'jest.setup.*' | |
| - 'package.json' | |
| - 'yarn.lock' | |
| - 'codecov.yml' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/ci-test.yml' | |
| - '.github/actions/**' | |
| - 'src/**' | |
| - 'plugin/**' | |
| - 'example/screens/**' | |
| - 'example/components/**' | |
| - 'example/__tests__/**' | |
| - 'jest.config.*' | |
| - 'jest.setup.*' | |
| - 'package.json' | |
| - 'yarn.lock' | |
| - 'codecov.yml' | |
| merge_group: | |
| types: | |
| - checks_requested | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Run linting | |
| run: node .yarn/releases/yarn-3.6.1.cjs lint:ci | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Run library tests with coverage | |
| run: node .yarn/releases/yarn-3.6.1.cjs test:ci | |
| - name: Run example tests with coverage | |
| run: node .yarn/releases/yarn-3.6.1.cjs test:ci:example | |
| - name: List coverage files | |
| run: | | |
| echo "Library coverage:" | |
| ls -la coverage/ || echo "No library coverage directory" | |
| # echo "Example coverage:" | |
| # ls -la example/coverage/ || echo "No example coverage directory" | |
| - name: Upload library coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: hyochan/react-native-iap | |
| files: ./coverage/lcov.info | |
| flags: library | |
| name: library-coverage | |
| fail_ci_if_error: false | |
| verbose: true | |
| # - name: Upload example coverage to Codecov | |
| # uses: codecov/codecov-action@v5 | |
| # with: | |
| # token: ${{ secrets.CODECOV_TOKEN }} | |
| # slug: hyochan/react-native-iap | |
| # files: ./example/coverage/lcov.info | |
| # flags: example | |
| # name: example-coverage | |
| # fail_ci_if_error: false | |
| # verbose: true |