forked from digital-fabric/iou
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 989 Bytes
/
test.yml
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
name: Tests
on: [push, pull_request]
concurrency:
group: tests-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
# macos-latest uses arm64, macos-13 uses x86
os: [ubuntu-latest]
ruby: ['3.3', 'head']
name: ${{matrix.os}}, ${{matrix.ruby}}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true # 'bundle install' and cache
- name: Compile C-extension
run: bundle exec rake compile
- name: Run tests
# run: bundle exec ruby test/test_um.rb --name test_read_each_raising_2
run: bundle exec rake test