-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (41 loc) · 1.01 KB
/
tests.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
name: Tests
on:
push:
branches: [ main, master, dev/github-actions ]
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
tests:
name: >-
OS ${{ matrix.os }}, Ruby ${{ matrix.ruby }}
env:
CI: true
runs-on: ${{ matrix.os }}
if: |
!( contains(github.event.pull_request.title, '[ci skip]')
|| contains(github.event.pull_request.title, '[skip ci]'))
strategy:
fail-fast: false
matrix:
os: [ macos-12, windows-2022 ]
ruby: [ 2.5, 2.7, 3.1 ]
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Ruby
uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
timeout-minutes: 10
- name: Run tests
timeout-minutes: 10
run: bundle exec rake test