Skip to content

Commit

Permalink
chore: adjust workflows config
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Sep 20, 2019
1 parent d7cf012 commit bfbe432
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Ruby

on: [pull_request]
on: [push]

jobs:
build:
Expand All @@ -11,14 +11,23 @@ jobs:
- uses: actions/checkout@v1
- name: Set up Ruby 2.6.4
run: |
sudo apt-get install rbenv ruby-build
sudo apt-get update
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
sudo apt-get install -y libsodium-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.6.4
rbenv global 2.6.4
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
type rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install -l
sudo rbenv install 2.6.4
sudo rbenv global 2.6.4
sudo rbenv versions
sudo apt autoremove
- name: Build and test with Rake
run: |
sudo gem install bundler
rbenv rehash
run: |
sudo gem install bundler -v 2.0.1
sudo rbenv rehash
bundle install --jobs 4 --retry 3
bundle exec rake

0 comments on commit bfbe432

Please sign in to comment.