Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/rn-build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ jobs:
with:
distribution: zulu
java-version: ${{ env.JAVA_VERSION }}
cache: gradle
cache-dependency-path: |
platforms/android/**/*.gradle*
platforms/android/**/gradle-wrapper.properties
platforms/android/gradle.properties
platforms/react-native/package.json
platforms/react-native/pnpm-lock.yaml
platforms/react-native/sample/package.json
platforms/react-native/sample/android/**/*.gradle*
platforms/react-native/sample/android/**/gradle-wrapper.properties
platforms/react-native/sample/android/gradle.properties
platforms/react-native/modules/@shopify/checkout-kit-react-native/android/**/*.gradle*
platforms/react-native/modules/@shopify/checkout-kit-react-native/android/gradle.properties

- name: Build Android sample
timeout-minutes: 20
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/rn-build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
bundler-cache: true
working-directory: platforms/react-native/sample

- name: Cache cocoapods
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: platforms/react-native/sample/ios/Pods
key: ${{ runner.os }}-cocoapods-${{ hashFiles('platforms/react-native/sample/ios/Podfile.lock', 'platforms/react-native/sample/Gemfile.lock', 'platforms/react-native/sample/Gemfile', 'platforms/react-native/package.json', 'platforms/react-native/sample/package.json', 'platforms/react-native/modules/@shopify/checkout-kit-react-native/package.json', 'platforms/react-native/pnpm-lock.yaml') }}

- name: Install cocoapods
working-directory: platforms/react-native/sample
run: |
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/rn-check-packed-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ jobs:
package-json-file: platforms/react-native/package.json
working-directory: platforms/react-native

- name: Cache turbo build setup
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: platforms/react-native/.turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Build module and compare snapshot
run: |
pnpm module clean
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/rn-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ jobs:
package-json-file: platforms/react-native/package.json
working-directory: platforms/react-native

- name: Cache turbo build setup
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: platforms/react-native/.turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Build module
run: pnpm module build

Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/rn-test-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,19 @@ jobs:
with:
distribution: zulu
java-version: ${{ env.JAVA_VERSION }}

- name: Cache turbo build setup
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: platforms/react-native/.turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
cache: gradle
cache-dependency-path: |
platforms/android/**/*.gradle*
platforms/android/**/gradle-wrapper.properties
platforms/android/gradle.properties
platforms/react-native/package.json
platforms/react-native/pnpm-lock.yaml
platforms/react-native/sample/package.json
platforms/react-native/sample/android/**/*.gradle*
platforms/react-native/sample/android/**/gradle-wrapper.properties
platforms/react-native/sample/android/gradle.properties
platforms/react-native/modules/@shopify/checkout-kit-react-native/android/**/*.gradle*
platforms/react-native/modules/@shopify/checkout-kit-react-native/android/gradle.properties

- name: Run Android tests
timeout-minutes: 20
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/rn-test-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ jobs:
package-json-file: platforms/react-native/package.json
working-directory: platforms/react-native

- name: Cache turbo build setup
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: platforms/react-native/.turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Setup Ruby
uses: ruby/setup-ruby@6aaa311d81eba98ae12eaffbcb63296ace0efcde # v1.307.0
with:
Expand Down
Loading