-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 1.35 KB
/
test.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: rake
on:
push:
branches: [ master, main ]
tags: [ v* ]
paths-ignore:
- '**.md'
- '**.adoc'
- '.github/workflows/*.yaml'
- '!.github/workflows/test.yaml'
pull_request:
paths-ignore:
- '**.md'
- '**.adoc'
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
concurrency:
group: '${{ github.workflow }}-${{ matrix.os }}-${{ matrix.ruby.version }}-${{ github.head_ref || github.ref_name }}'
cancel-in-progress: true
strategy:
fail-fast: false
max-parallel: 5
matrix:
os:
- "macos-latest"
- "ubuntu-latest"
- "windows-latest"
ruby:
- version: '3.4'
experimental: true
- version: '3.3'
experimental: false
- version: '3.2'
experimental: false
- version: '3.1'
experimental: false
exclude:
- os: windows-latest
ruby:
version: 3.4
experimental: true
continue-on-error: ${{ matrix.ruby.experimental }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby.version }}
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec