bump ruby 3.1.2 -> 3.3.6 #737
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: CI Pipeline | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
lint-swift: | |
name: Lint Swift code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Run SwiftLint | |
uses: norio-nomura/action-swiftlint@9f4dcd7fd46b4e75d7935cf2f4df406d5cae3684 # 3.2.1 | |
with: | |
args: --strict | |
license: | |
name: Verify license headers | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- run: ./scripts/copy_license && git diff --name-only --exit-code | |
check-packed-files: | |
name: Check package files | |
runs-on: ubuntu-latest | |
env: | |
TERM: xterm | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- run: | | |
yarn module clean | |
yarn module build | |
yarn compare-snapshot | |
lint: | |
name: Lint module + sample | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- run: | | |
yarn module build | |
yarn module lint | |
yarn sample lint | |
test: | |
name: Run jest tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- run: yarn test | |
test-android: | |
name: Run Android Tests | |
runs-on: ubuntu-latest | |
needs: [lint, test] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Install JDK | |
# if: env.turbo_cache_hit != 1 | |
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Run Android tests | |
run: | | |
echo "STOREFRONT_DOMAIN=\"myshopify.com\"" > sample/.env | |
yarn module build | |
yarn sample test:android --no-daemon | |
test-ios: | |
name: Run iOS Tests | |
runs-on: macos-13-xlarge | |
needs: [lint, lint-swift, test] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup iOS Simulator | |
uses: ./.github/actions/setup-simulator | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Check turbo cache | |
uses: ./.github/actions/use-turbo-cache | |
- name: Check build cache | |
run: | | |
CACHE_STATUS=$(./scripts/check_cache sample test:ios) | |
echo "[sample] build:ios - $CACHE_STATUS" | |
echo "turbo_cache_hit=$CACHE_STATUS" >> $GITHUB_ENV | |
- name: Install cocoapods | |
uses: ./.github/actions/install-cocoapods | |
- name: Run Swift tests | |
# If turbo has already cached the build it will return instantly here | |
run: | | |
yarn turbo run test:ios --cache-dir=".turbo" --no-daemon |