Skip to content

Commit 03a8ba9

Browse files
committed
GH actions
1 parent 1cb0bb9 commit 03a8ba9

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
rubocop:
11+
name: Rubocop
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: Setup Ruby and install gems
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: 3.4
20+
bundler-cache: true
21+
- name: Run rubocop
22+
run: bin/rubocop
23+
24+
tests:
25+
name: Tests
26+
runs-on: ubuntu-latest
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
ruby-version:
31+
- 3.2
32+
- 3.3
33+
- 3.4
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v4
37+
- name: Setup Ruby and install gems
38+
uses: ruby/setup-ruby@v1
39+
with:
40+
ruby-version: ${{ matrix.ruby-version }}
41+
bundler-cache: true
42+
- name: Run tests
43+
run: bin/rails test

0 commit comments

Comments
 (0)