-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.08 KB
/
ruby.yml
File metadata and controls
55 lines (45 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
51
52
53
54
55
name: tests
on:
workflow_dispatch:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest','macos-latest' ]
# - https://www.ruby-lang.org/en/downloads/branches
ruby: [ '3.1','ruby-head','jruby-head' ]
runs-on: "${{ matrix.os }}"
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
submodules: recursive
# - https://github.com/ruby/setup-ruby
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
bundler: 'latest'
bundler-cache: false
cache-version: 2
- name: Install Gems
run: |
gem update bundler
bundler install
- name: Run tests
run: bundler exec rake test
- name: Test build & install
run: |
bundler exec rake build
gem install --document --local pkg/*.gem
ruby -w -r attr_bool -e 'puts AttrBool::VERSION'