Skip to content

Commit

Permalink
Minor adjustments to actions and setup comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregschmit committed Jul 3, 2023
1 parent 7caf0c2 commit 097436c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
- name: Install Ruby/Gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
Expand All @@ -33,7 +33,7 @@ jobs:
uses: actions/checkout@v3
- name: Remove `Gemfile.lock` because this is a matrix job
run: rm Gemfile.lock
- name: Install Ruby and gems
- name: Install Ruby/Gems
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down Expand Up @@ -61,8 +61,10 @@ jobs:
uses: actions/checkout@v3
- name: Ensure latest tag is fetched
run: git fetch --unshallow --prune --tags --force
- name: Install Ruby
- name: Install Ruby/Gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build the gem
run: gem build rest_framework.gemspec -o rest_framework.gem
- name: Push to RubyGems
Expand Down
4 changes: 2 additions & 2 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env ruby

# Configure the development or production environment; must be idempotent.

require "fileutils"

def system!(*args)
Expand All @@ -9,8 +11,6 @@ end
PRODUCTION = ENV["RAILS_ENV"] == "production"

FileUtils.chdir(File.expand_path("..", __dir__)) do
# This script configures the development or production environment, and should be idempotent.

puts "== Installing Ruby dependencies =="
system!("bundle install")

Expand Down

0 comments on commit 097436c

Please sign in to comment.