Skip to content

Commit 866dc36

Browse files
committed
Merge branch 'main' into 'main'
Add .gitlab-ci.yml file See merge request oauth-xx/oauth2!635
2 parents f2bc015 + d688826 commit 866dc36

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.gitlab-ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
default:
2+
image: ruby:3.1
3+
4+
workflow:
5+
rules:
6+
# For merge requests, create a pipeline.
7+
- if: '$CI_MERGE_REQUEST_IID'
8+
# For `master` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).
9+
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
10+
# For tags, create a pipeline.
11+
- if: '$CI_COMMIT_TAG'
12+
13+
14+
.test_template: &test_definition
15+
image: ruby:${RUBY_VERSION}
16+
stage: test
17+
script:
18+
- gem install bundler --no-document
19+
- bundle config --local path vendor
20+
- bundle install
21+
- bundle exec rake test
22+
cache:
23+
key: ${CI_JOB_IMAGE}
24+
paths:
25+
- vendor/ruby
26+
ruby:
27+
<<: *test_definition
28+
parallel:
29+
matrix:
30+
- RUBY_VERSION: ["2.7", "3.0", "3.1", "3.2"]

0 commit comments

Comments
 (0)