From 840a64b6bd82090d5cbf34ef9d16b1410f4ba6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9cio=20Varj=C3=A3o?= <1348549+cvarjao@users.noreply.github.com> Date: Fri, 6 Oct 2023 11:45:19 -0700 Subject: [PATCH] ci: lock ruby environment (#991) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Clécio Varjão <1348549+cvarjao@users.noreply.github.com> --- .github/workflows/main.yaml | 11 ++-- .gitignore | 3 +- packages/legacy/app/.bundle/config | 2 - packages/legacy/app/.ruby-version | 1 + packages/legacy/app/Gemfile | 1 + packages/legacy/app/Gemfile.lock | 99 ++++++++++++++++++++++++++++++ 6 files changed, 110 insertions(+), 7 deletions(-) delete mode 100644 packages/legacy/app/.bundle/config create mode 100644 packages/legacy/app/.ruby-version create mode 100644 packages/legacy/app/Gemfile.lock diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 633a25fb05..c4c3a775a2 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -7,8 +7,9 @@ on: pull_request: branches: [main] paths: - - 'packages/legacy/app/ios/**' - - 'packages/legacy/app/android/**' + - 'packages/legacy/app/**' + - 'packages/legacy/core/**' + - 'packages/oca/**' - '**/package-lock.json' types: [opened, synchronize, reopened, labeled] push: @@ -17,6 +18,8 @@ on: jobs: build-ios: runs-on: macos-latest + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/packages/legacy/app/Gemfile steps: - uses: actions/checkout@v3 @@ -26,7 +29,7 @@ jobs: - name: Configure ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + working-directory: ./packages/legacy/app - name: Cache pod dependencies id: pod-cache @@ -65,7 +68,7 @@ jobs: # if: steps.pod-cache.outputs.cache-hit != 'true' || steps.npm-cache.outputs.cache-hit != 'true' working-directory: ./packages/legacy/app/ios run: | - gem install cocoapods && \ + bundle install --frozen --gemfile=${BUNDLE_GEMFILE} && \ pod install && \ git status && \ git diff Podfile.lock diff --git a/.gitignore b/.gitignore index bf163423ed..b3009363bf 100644 --- a/.gitignore +++ b/.gitignore @@ -176,4 +176,5 @@ lib/ app/android/app/src/main/assets/app.bundle **/.yarn/cache **/.yarn/install-state.gz -.xcode.env.local \ No newline at end of file +.xcode.env.local +packages/legacy/app/vendor/bundle/** diff --git a/packages/legacy/app/.bundle/config b/packages/legacy/app/.bundle/config deleted file mode 100644 index d137d242ed..0000000000 --- a/packages/legacy/app/.bundle/config +++ /dev/null @@ -1,2 +0,0 @@ -BUNDLE_PATH: "vendor/bundle" -BUNDLE_FORCE_RUBY_PLATFORM: 1 \ No newline at end of file diff --git a/packages/legacy/app/.ruby-version b/packages/legacy/app/.ruby-version new file mode 100644 index 0000000000..6a81b4c837 --- /dev/null +++ b/packages/legacy/app/.ruby-version @@ -0,0 +1 @@ +2.7.8 diff --git a/packages/legacy/app/Gemfile b/packages/legacy/app/Gemfile index a543c630f9..afb84bf58f 100644 --- a/packages/legacy/app/Gemfile +++ b/packages/legacy/app/Gemfile @@ -2,3 +2,4 @@ source 'https://rubygems.org' # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version ruby ">= 2.6.10" gem 'cocoapods', '~> 1.12' +gem 'activesupport', '~> 7.0.8' diff --git a/packages/legacy/app/Gemfile.lock b/packages/legacy/app/Gemfile.lock new file mode 100644 index 0000000000..f1f97f3238 --- /dev/null +++ b/packages/legacy/app/Gemfile.lock @@ -0,0 +1,99 @@ +GEM + remote: https://rubygems.org/ + specs: + CFPropertyList (3.0.6) + rexml + activesupport (7.0.8) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + addressable (2.8.5) + public_suffix (>= 2.0.2, < 6.0) + algoliasearch (1.27.5) + httpclient (~> 2.8, >= 2.8.3) + json (>= 1.5.1) + atomos (0.1.3) + claide (1.1.0) + cocoapods (1.13.0) + addressable (~> 2.8) + claide (>= 1.0.2, < 2.0) + cocoapods-core (= 1.13.0) + cocoapods-deintegrate (>= 1.0.3, < 2.0) + cocoapods-downloader (>= 1.6.0, < 2.0) + cocoapods-plugins (>= 1.0.0, < 2.0) + cocoapods-search (>= 1.0.0, < 2.0) + cocoapods-trunk (>= 1.6.0, < 2.0) + cocoapods-try (>= 1.1.0, < 2.0) + colored2 (~> 3.1) + escape (~> 0.0.4) + fourflusher (>= 2.3.0, < 3.0) + gh_inspector (~> 1.0) + molinillo (~> 0.8.0) + nap (~> 1.0) + ruby-macho (>= 2.3.0, < 3.0) + xcodeproj (>= 1.23.0, < 2.0) + cocoapods-core (1.13.0) + activesupport (>= 5.0, < 8) + addressable (~> 2.8) + algoliasearch (~> 1.0) + concurrent-ruby (~> 1.1) + fuzzy_match (~> 2.0.4) + nap (~> 1.0) + netrc (~> 0.11) + public_suffix (~> 4.0) + typhoeus (~> 1.0) + cocoapods-deintegrate (1.0.5) + cocoapods-downloader (1.6.3) + cocoapods-plugins (1.0.0) + nap + cocoapods-search (1.0.1) + cocoapods-trunk (1.6.0) + nap (>= 0.8, < 2.0) + netrc (~> 0.11) + cocoapods-try (1.2.0) + colored2 (3.1.2) + concurrent-ruby (1.2.2) + escape (0.0.4) + ethon (0.16.0) + ffi (>= 1.15.0) + ffi (1.16.3) + fourflusher (2.3.1) + fuzzy_match (2.0.4) + gh_inspector (1.1.3) + httpclient (2.8.3) + i18n (1.14.1) + concurrent-ruby (~> 1.0) + json (2.6.3) + minitest (5.20.0) + molinillo (0.8.0) + nanaimo (0.3.0) + nap (1.1.0) + netrc (0.11.0) + public_suffix (4.0.7) + rexml (3.2.6) + ruby-macho (2.5.1) + typhoeus (1.4.0) + ethon (>= 0.9.0) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + xcodeproj (1.23.0) + CFPropertyList (>= 2.3.3, < 4.0) + atomos (~> 0.1.3) + claide (>= 1.0.2, < 2.0) + colored2 (~> 3.1) + nanaimo (~> 0.3.0) + rexml (~> 3.2.4) + +PLATFORMS + ruby + +DEPENDENCIES + activesupport (~> 7.0.8) + cocoapods (~> 1.12) + +RUBY VERSION + ruby 2.7.8p225 + +BUNDLED WITH + 2.1.4