Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Use Github Actions Rubygems #1156

Open
wants to merge 6 commits into
base: core_data_rewrite
Choose a base branch
from
Open
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
16 changes: 10 additions & 6 deletions .github/workflows/core_data_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Cache RubyGems
uses: actions/[email protected]
# Install RubyGems
uses: ruby/setup-ruby@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
ruby-version: 2.6 # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install Fastlane
run: |
bundle update
gem install fastlane
- name: Cache Pods
uses: actions/[email protected]
with:
Expand All @@ -42,8 +45,9 @@ jobs:
run: |
sh ./bootstrap.sh
pod install

- name: Run code validation
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
args: --failOnErrors --no-publish-check
env:
Expand Down
179 changes: 0 additions & 179 deletions Gemfile.lock

This file was deleted.

12 changes: 0 additions & 12 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,3 @@ if [ -e "Mintfile" ]; then
install_current mint
mint bootstrap
fi
# Install gems if a Gemfile exists
if [ -e "Gemfile" ]; then
echo "installing ruby gems";
# install bundler gem for ruby dependency management
gem uninstall bundler
gem install bundler:1.17.3 --no-document || echo "failed to install bundle"; #1.17.3 is needed for other deps

bundle config set deployment 'true';
bundle config path vendor/bundle;
bundle install || echo "failed to install bundle";
fi