Skip to content

Commit 8d74fc4

Browse files
committed
Adds github actions
1 parent 9c31a34 commit 8d74fc4

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref_name }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches:
10+
- kiskolabs/github-actions
11+
pull_request:
12+
branches:
13+
- kiskolabs/github-actions
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
ruby: [2.6, 2.7, 3.0]
21+
gemfile:
22+
- Gemfile
23+
- Gemfile.rails-5.0.x
24+
- Gemfile.rails-5.1.x
25+
- Gemfile.rails-6.0.x
26+
- Gemfile.rails-6.1.x
27+
exclude:
28+
- ruby: 3.0
29+
gemfile: Gemfile.rails-5.0.x
30+
- ruby: 3.0
31+
gemfile: Gemfile.rails-5.1.x
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
- name: Set up Ruby
36+
uses: ruby/setup-ruby@v1
37+
with:
38+
ruby-version: ${{ matrix.ruby }}
39+
bundler-cache: true
40+
- name: Run tests
41+
run: |
42+
bundle exec rspec

0 commit comments

Comments
 (0)