Skip to content

Commit 255e4e3

Browse files
authored
Merge pull request #4 from hoverinc/adds-unit-tests-wokrflow
adds unit tests workflow
2 parents 702bcbb + be3e105 commit 255e4e3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on: [push]
2+
3+
name: Test
4+
5+
jobs:
6+
run:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@master
12+
13+
- name: Set up Ruby
14+
uses: actions/setup-ruby@v1
15+
with:
16+
ruby-version: '2.7.x'
17+
bundler-cache: true
18+
19+
- name: Cache bundled gems
20+
uses: actions/cache@v2
21+
with:
22+
path: vendor/bundle
23+
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile.lock') }}
24+
restore-keys: |
25+
${{ runner.os }}-gems-
26+
27+
- name: Install Ruby gems
28+
run: |
29+
bundle config path vendor/bundle
30+
bundle install
31+
32+
- name: Run Rspec
33+
run: |
34+
bundle exec rspec

0 commit comments

Comments
 (0)