We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adf3ca6 commit ea1016fCopy full SHA for ea1016f
.github/workflows/main.yml
@@ -1,18 +1,28 @@
1
name: Ruby
2
3
-on: [push,pull_request]
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ pull_request:
9
10
jobs:
11
build:
12
runs-on: ubuntu-latest
13
+ name: Ruby ${{ matrix.ruby }}
14
+ strategy:
15
+ matrix:
16
+ ruby:
17
+ - '3.2.1'
18
19
steps:
- - uses: actions/checkout@v2
20
+ - uses: actions/checkout@v3
21
- name: Set up Ruby
22
uses: ruby/setup-ruby@v1
23
with:
- ruby-version: 3.0.1
- - name: Run the default task
- run: |
- gem install bundler -v 2.2.15
- bundle install
- bundle exec rake
24
+ ruby-version: ${{ matrix.ruby }}
25
+ bundler-cache: true
26
+ - name: Run tests
27
+ run: bundle exec rake
28
0 commit comments