Skip to content

Commit 88b334e

Browse files
authored
Merge pull request #163 from sayant1204/github-action
added ci -github
2 parents 035f80d + 4113ac5 commit 88b334e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: daru-view test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu]
16+
ruby: [2.3.0, 2.4.0, 2.5.3, 2.6.0]
17+
runs-on: ${{ matrix.os }}-latest
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true
26+
- name: Install dependencies
27+
run: |
28+
gem install bundler
29+
gem install rainbow -v '2.2.1'
30+
bundle install
31+
- name: Run tests
32+
run: |
33+
bundle exec rspec
34+
bundle exec rubocop
35+
- name: Push coverage report
36+
run: bundle exec rake coveralls:push

0 commit comments

Comments
 (0)