Skip to content

Commit 436b10e

Browse files
committed
Fix github test action
1 parent 6770ce5 commit 436b10e

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: tests-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
# macos-latest uses arm64, macos-13 uses x86
15+
os: [ubuntu-latest]
16+
ruby: ['3.4', 'head']
17+
18+
name: ${{matrix.os}}, ${{matrix.ruby}}
19+
20+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
21+
22+
runs-on: ${{matrix.os}}
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
submodules: recursive
27+
28+
- uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{matrix.ruby}}
31+
bundler-cache: true # 'bundle install' and cache
32+
- name: Run tests
33+
# run: bundle exec ruby test/test_um.rb --name test_read_each_raising_2
34+
run: bundle exec rake test

0 commit comments

Comments
 (0)