Skip to content

Commit

Permalink
Merge pull request #163 from sayant1204/github-action
Browse files Browse the repository at this point in the history
added ci -github
  • Loading branch information
Shekharrajak authored Mar 7, 2021
2 parents 035f80d + 4113ac5 commit 88b334e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: daru-view test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:

strategy:
fail-fast: false
matrix:
os: [ubuntu]
ruby: [2.3.0, 2.4.0, 2.5.3, 2.6.0]
runs-on: ${{ matrix.os }}-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: |
gem install bundler
gem install rainbow -v '2.2.1'
bundle install
- name: Run tests
run: |
bundle exec rspec
bundle exec rubocop
- name: Push coverage report
run: bundle exec rake coveralls:push

0 comments on commit 88b334e

Please sign in to comment.