Skip to content

Commit 6b18bda

Browse files
committed
add github actions for linting and rspec
1 parent f45ff6c commit 6b18bda

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Install Ruby and gems
12+
uses: ruby/setup-ruby@v1
13+
with:
14+
bundler-cache: true
15+
ruby-version: 3.2.4
16+
- name: Setup DB, Run tests
17+
run: |
18+
bundle exec rspec
19+
20+
lint:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v3
25+
- name: Install Ruby and gems
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
bundler-cache: true
29+
ruby-version: 3.2.4
30+
- name: Standard Ruby
31+
uses: standardrb/standard-ruby-action@v1
32+

0 commit comments

Comments
 (0)