From 9077272569014edc3cb6d2a46908945ef3676fe2 Mon Sep 17 00:00:00 2001 From: Alexandre Podlewski Date: Mon, 4 Mar 2024 15:19:03 +0100 Subject: [PATCH] Update CI/CD scripts --- .github/workflows/cd.yml | 10 +++++----- .github/workflows/ci.yml | 21 ++++++--------------- fastlane/Fastfile | 2 +- 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8046952..abe7cd2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -11,13 +11,13 @@ jobs: runs-on: macOS-latest steps: - - uses: actions/checkout@v2 - - uses: ruby/setup-ruby@v1 + - uses: actions/checkout@v3 + - name: Bundle install + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6.5 + bundler: "Gemfile.lock" + bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - name: Bundle install - run: bundle install - name: Publish release env: GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cfe3a9..d685579 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,24 +11,15 @@ jobs: runs-on: macOS-latest steps: - - uses: actions/checkout@v2 - - uses: ruby/setup-ruby@v1 + - uses: actions/checkout@v3 + - name: Bundle install + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6.5 + bundler: "Gemfile.lock" + bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - name: Ruby cache - uses: actions/cache@v1 - with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- - - name: Bundle install - run: | - bundle config path vendor/bundle - bundle check || bundle install - name: Pods cache - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: Pods key: ${{ runner.os }}-cocoapods-${{ hashFiles('**/Podfile.lock') }} diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 6e4d641..d2b7478 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -5,7 +5,7 @@ lane :tests do configuration: "Debug", scheme: "NavigationBarExtension-Example", clean: true, - devices: ["iPhone 8"] + devices: ["iPhone SE (3rd generation)"] ) end