Skip to content

Commit

Permalink
Merge pull request #16 from haiafara/improve-github-actions
Browse files Browse the repository at this point in the history
Improve GitHub Actions
  • Loading branch information
janosrusiczki committed Oct 16, 2019
2 parents 2749daa + f974031 commit 7e43c5b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/gempush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Run Rubocop

- name: Run rubocop
run: |
bundle install
bundle exec rubocop
Expand All @@ -28,20 +28,22 @@ jobs:

steps:
- uses: actions/checkout@master

- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Run specs

- name: Run rspec
run: |
bundle install
bundle exec rspec
publish:
name: Publish
runs-on: ubuntu-latest

if: github.ref == 'refs/heads/master'

needs: rspec

Expand All @@ -54,7 +56,6 @@ jobs:
ruby-version: 2.6.x

- name: Publish to RubyGems
if: github.ref == 'master'
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
Expand Down

0 comments on commit 7e43c5b

Please sign in to comment.