Skip to content

Commit dad565e

Browse files
Add CI workflow for Ruby with linting and testing
1 parent 170a9a7 commit dad565e

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
name: Rubocop
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Ruby einrichten
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: "3.1.2"
20+
bundler-cache: true
21+
22+
- name: Lint
23+
run: bundle exec rubocop
24+
25+
test:
26+
name: Tests
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- name: Ruby einrichten
32+
uses: ruby/setup-ruby@v1
33+
with:
34+
ruby-version: "3.1.2"
35+
bundler-cache: true
36+
37+
- name: Tests ausführen
38+
run: bundle exec rake test

0 commit comments

Comments
 (0)