|
1 | | -name: Test |
| 1 | +name: Ruby |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | 5 | branches: [main, master] # TODO: rename and get rid of 'master' |
6 | | - # Triggers the workflow on pull request events. |
| 6 | + paths-ignore: |
| 7 | + - '**/*.md' |
7 | 8 | pull_request: |
8 | | - types: [opened, reopened, synchronize] |
9 | | - # Allows you to run this workflow manually from the Actions tab |
| 9 | + branches: [main, master] # TODO: rename and get rid of 'master' |
| 10 | + paths-ignore: |
| 11 | + - '**/*.md' |
10 | 12 | workflow_dispatch: |
11 | 13 |
|
12 | | -# This allows a subsequently queued workflow run to interrupt previous runs. |
13 | | -concurrency: |
14 | | - group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" |
15 | | - cancel-in-progress: true |
16 | | - |
17 | 14 | jobs: |
18 | 15 | test: |
19 | | - runs-on: ubuntu-latest |
20 | 16 | strategy: |
21 | 17 | matrix: |
22 | | - ruby: |
23 | | - # https://www.ruby-lang.org/en/downloads/branches/ |
24 | | - - "ruby-3.0" |
25 | | - - "ruby-3.1" |
26 | | - - "ruby-3.2" |
27 | | - - "ruby-3.3" |
28 | | - - "ruby-head" |
29 | | - # https://github.com/jruby/jruby/discussions/7915 |
30 | | - - "jruby-9.4" |
31 | | - - "jruby-head" |
32 | | - name: "Test (Ruby ${{ matrix.ruby }})" |
33 | | - env: |
34 | | - SKIP_ADAPTERS: jr_jackson,nsjsonserialization,json_pure |
| 18 | + ruby-version: ['3.0', '3.1', '3.2', 'jruby'] |
| 19 | + platform: [ubuntu-latest, macos-latest, windows-latest] |
| 20 | + runs-on: ${{ matrix.platform }} |
| 21 | + |
35 | 22 | steps: |
36 | | - - uses: actions/checkout@v4 |
37 | | - - name: Set up Ruby |
38 | | - uses: ruby/setup-ruby@v1 |
39 | | - with: |
40 | | - ruby-version: ${{ matrix.ruby }} |
41 | | - bundler-cache: true |
42 | | - - run: bundle install |
43 | | - - run: bundle exec rake |
| 23 | + - uses: actions/checkout@v4 |
| 24 | + - name: Set up Ruby |
| 25 | + uses: ruby/setup-ruby@v1 |
| 26 | + with: |
| 27 | + ruby-version: ${{ matrix.ruby-version }} |
| 28 | + bundler-cache: false # Do not bundle install yet, need recent versions for Windows |
| 29 | + - name: Run tests |
| 30 | + run: | |
| 31 | + gem install bundler |
| 32 | + bundle install |
| 33 | + bundle exec rake |
| 34 | +
|
0 commit comments