-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.08 KB
/
test.yml
File metadata and controls
50 lines (48 loc) · 1.08 KB
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
---
name: Run tests
on:
- push
- pull_request
jobs:
rspec:
name: RSpec
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# github actions doesn't support anchors yet, so this is duplicated in the action below too 🙃
matrix:
ruby:
- ruby-2.7
- ruby-3.0
- ruby-3.1
- ruby-3.2
os:
- macos-latest
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec
test-build:
name: Test building the gem
runs-on: ${{ matrix.os }}
strategy:
matrix:
ruby:
- ruby-2.7
- ruby-3.0
- ruby-3.1
- ruby-3.2
os:
- macos-latest
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec gem build lirc.gemspec