|
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | build: |
11 | | - runs-on: ubuntu-latest |
| 11 | + runs-on: ${{ matrix.os }} |
12 | 12 | name: Ruby ${{ matrix.ruby }} |
13 | 13 | strategy: |
| 14 | + fail-fast: false |
14 | 15 | matrix: |
| 16 | + os: [ubuntu-latest, macos-latest, windows-latest] |
15 | 17 | ruby: |
16 | 18 | - "3.1.2" |
17 | 19 | - "2.7.6" |
18 | 20 | - "3.0.4" |
| 21 | + env: |
| 22 | + BUNDLE_GEMFILE: Gemfile |
19 | 23 |
|
20 | 24 | steps: |
21 | 25 | - uses: actions/checkout@v3 |
22 | | - - name: Set up Ruby |
| 26 | + - uses: ruby/setup-ruby@v1 |
| 27 | + with: |
| 28 | + ruby-version: ${{ matrix.ruby }} |
| 29 | + bundler-cache: true |
| 30 | + - run: bundle install |
| 31 | + - run: bundle exec rake |
| 32 | + |
| 33 | + rubocop: |
| 34 | + runs-on: ${{ matrix.os }} |
| 35 | + name: Rubocop ${{ matrix.ruby }} |
| 36 | + strategy: |
| 37 | + fail-fast: false |
| 38 | + matrix: |
| 39 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 40 | + ruby: |
| 41 | + - "3.1.2" |
| 42 | + - "2.7.6" |
| 43 | + - "3.0.4" |
| 44 | + env: |
| 45 | + BUNDLE_GEMFILE: Gemfile |
| 46 | + |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v3 |
| 49 | + - name: Set up Ruby ${{ matrix.ruby }} |
23 | 50 | uses: ruby/setup-ruby@v1 |
24 | 51 | with: |
25 | 52 | ruby-version: ${{ matrix.ruby }} |
26 | 53 | bundler-cache: true |
27 | | - - name: Install dependencies |
28 | | - run: bundle install |
29 | | - - name: Run the default task |
30 | | - run: bundle exec rake |
31 | | - - name: Rubocop |
| 54 | + - name: Run style checks |
32 | 55 | run: bundle exec rubocop |
| 56 | + |
| 57 | + test: |
| 58 | + runs-on: ${{ matrix.os }} |
| 59 | + name: RSpec ${{ matrix.ruby }} |
| 60 | + strategy: |
| 61 | + fail-fast: false |
| 62 | + matrix: |
| 63 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 64 | + ruby: |
| 65 | + - "3.1.2" |
| 66 | + - "2.7.6" |
| 67 | + - "3.0.4" |
| 68 | + env: |
| 69 | + BUNDLE_GEMFILE: Gemfile |
| 70 | + |
| 71 | + steps: |
| 72 | + - uses: actions/checkout@v3 |
| 73 | + - name: Set up Ruby ${{ matrix.ruby }} |
| 74 | + uses: ruby/setup-ruby@v1 |
| 75 | + with: |
| 76 | + ruby-version: ${{ matrix.ruby }} |
| 77 | + bundler-cache: true |
| 78 | + - name: Run tests |
| 79 | + run: bundle exec rspec |
0 commit comments