Skip to content

Commit a79070e

Browse files
committed
change actions
1 parent adf3ca6 commit a79070e

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.github/workflows/main.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
name: Ruby
22

3-
on: [push,pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
49

510
jobs:
611
build:
712
runs-on: ubuntu-latest
13+
name: Ruby ${{ matrix.ruby }}
14+
strategy:
15+
matrix:
16+
ruby:
17+
- '3.2.1'
18+
819
steps:
9-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
1021
- name: Set up Ruby
1122
uses: ruby/setup-ruby@v1
1223
with:
13-
ruby-version: 3.0.1
14-
- name: Run the default task
15-
run: |
16-
gem install bundler -v 2.2.15
17-
bundle install
18-
bundle exec rake
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true
26+
- name: Run tests
27+
run: bundle exec rake
28+

Gemfile.lock

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ GEM
6868
PLATFORMS
6969
arm64-darwin-20
7070
arm64-darwin-22
71+
x86_64-linux
7172

7273
DEPENDENCIES
7374
rake

0 commit comments

Comments
 (0)