Skip to content

Commit d23bc12

Browse files
Add basic CI: Lint, spec, version matrix
1 parent ce0fe11 commit d23bc12

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: main
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
ruby-version: ['2.3.3', '2.5.1', '2.7.0']
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Ruby
23+
uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: ${{ matrix.ruby-version }}
26+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
27+
- name: Lint
28+
run: bundle exec rubocop
29+
- name: Run specs
30+
run: bundle exec rspec

0 commit comments

Comments
 (0)