File: test-ruby.yml

package info (click to toggle)
ruby-multi-test 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 124 kB
  • sloc: ruby: 101; sh: 31; makefile: 9
file content (46 lines) | stat: -rw-r--r-- 941 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Test

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
  schedule:
    - cron: "0 0 * * *"
  workflow_call:

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest]
        ruby: ["2.6", "2.7", "3.0", "3.1"]
        gemfile: # These are duplicated from the test/gemfiles folder
          - activesupport-4
          - activesupport-5
          - minitest-4
          - minitest-5
          - plain-ruby
          - rspec-1
          - rspec-2
          - rspec-3
          - test-unit-2
          - test-unit-3

    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v3

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: false

      - name: Run test scenarios
        run: |
          ./test-gemfile test/gemfiles/${{ matrix.gemfile }}
        shell: bash