Skip to content

Commit 3a37bf9

Browse files
committed
Add rake test GHA
1 parent fa562ae commit 3a37bf9

File tree

2 files changed

+46
-74
lines changed

2 files changed

+46
-74
lines changed

.github/workflows/rake.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: rake
2+
3+
on:
4+
push:
5+
branches: [ master, main ]
6+
tags: [ v* ]
7+
pull_request:
8+
9+
# https://github.community/t/use-working-directory-for-entire-job/16747/12
10+
defaults:
11+
run:
12+
working-directory: ./ruby
13+
14+
jobs:
15+
rake:
16+
name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
17+
runs-on: ${{ matrix.os }}
18+
continue-on-error: ${{ matrix.experimental }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
ruby: [ '2.7', '2.6', '2.5', '2.4' ]
23+
os: [ ubuntu-latest, windows-latest, macos-latest ]
24+
experimental: [ false ]
25+
include:
26+
- ruby: '3.0'
27+
os: 'ubuntu-latest'
28+
experimental: true
29+
- ruby: '3.0'
30+
os: 'windows-latest'
31+
experimental: true
32+
- ruby: '3.0'
33+
os: 'macos-latest'
34+
experimental: true
35+
steps:
36+
- uses: actions/checkout@v2
37+
with:
38+
submodules: true
39+
40+
- uses: ruby/setup-ruby@v1
41+
with:
42+
ruby-version: ${{ matrix.ruby }}
43+
bundler-cache: true
44+
working-directory: ./ruby
45+
46+
- run: bundle exec rake

ruby/Gemfile.lock

-74
This file was deleted.

0 commit comments

Comments
 (0)