Skip to content

Commit

Permalink
Testing GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
janosrusiczki committed Oct 16, 2019
1 parent 2749daa commit dd10fcc
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/gempush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@ jobs:
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Run Rubocop

- name: Run bundle install
run: |
bundle install
bundle exec rubocop
bundle info rgeo
- name: Run rubocop
run: bundle exec rubocop

- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: project-directory
path: /home/runner/work/underpass/underpass

rspec:
name: Specs
Expand All @@ -27,21 +36,24 @@ jobs:
needs: rubocop

steps:
- uses: actions/checkout@master

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

- name: Download artifact
uses: actions/download-artifact@master
with:
name: project-directory
path: /home/runner/work/underpass/underpass

- name: Run specs
run: |
bundle install
bundle exec rspec
- name: Run rspec
run: bundle exec rspec

publish:
name: Publish
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'

needs: rspec

Expand All @@ -54,7 +66,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 dd10fcc

Please sign in to comment.