Skip to content

Commit 4401338

Browse files
committed
Add github actions for specs and linter
1 parent eee4b87 commit 4401338

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
ruby-version:
8+
- "2.4"
9+
- "2.7"
10+
- "3.0"
11+
- "3.1"
12+
name: ${{ format('Tests (Ruby {0})', matrix.ruby-version) }}
13+
runs-on: ubuntu-latest
14+
continue-on-error: true
15+
steps:
16+
- uses: actions/checkout@v1
17+
18+
- name: Install Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby-version }}
22+
bundler-cache: true
23+
24+
- name: Run Tests
25+
run: |
26+
bundle exec rspec
27+
lint:
28+
strategy:
29+
matrix:
30+
ruby-version:
31+
- "2.4"
32+
name: ${{ format('Lint (Ruby {0})', matrix.ruby-version) }}
33+
runs-on: ubuntu-latest
34+
continue-on-error: true
35+
steps:
36+
- uses: actions/checkout@v1
37+
38+
- name: Install Ruby
39+
uses: ruby/setup-ruby@v1
40+
with:
41+
ruby-version: ${{ matrix.ruby-version }}
42+
bundler-cache: true
43+
44+
- name: Run Linter
45+
run: |
46+
bundle exec rubocop

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Gemfile.lock
2+
.idea/**/*
3+
*.gemspec

0 commit comments

Comments
 (0)