Skip to content

Commit 6cf1ab0

Browse files
Merge pull request #22 from hebron-george/ci_cd_clean_up
2 parents 598889f + a50cee6 commit 6cf1ab0

2 files changed

Lines changed: 35 additions & 12 deletions

File tree

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "bundler"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/workflows/main.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
name: Ruby
22

3-
on: [push,pull_request]
3+
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
lint:
7+
name: RuboCop
78
runs-on: ubuntu-latest
89
steps:
9-
- uses: actions/checkout@v2
10-
- name: Set up Ruby
11-
uses: ruby/setup-ruby@v1
12-
with:
13-
ruby-version: 3.0.1
14-
- name: Run the default task
15-
run: |
16-
gem install bundler -v 2.2.15
17-
bundle install
18-
bundle exec rake
10+
- uses: actions/checkout@v4
11+
- uses: ruby/setup-ruby@v1
12+
with:
13+
ruby-version: "3.2"
14+
bundler-cache: true
15+
- name: Run RuboCop
16+
run: bundle exec rubocop
17+
18+
test:
19+
name: RSpec (Ruby ${{ matrix.ruby }})
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
ruby: ["3.1", "3.2", "3.3"]
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: ${{ matrix.ruby }}
29+
bundler-cache: true
30+
- name: Run RSpec
31+
run: bundle exec rspec

0 commit comments

Comments
 (0)