Skip to content

Commit 086c8ba

Browse files
committed
Setup GitHub Actions
1 parent 35350e2 commit 086c8ba

File tree

3 files changed

+54
-36
lines changed

3 files changed

+54
-36
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
continue-on-error: ${{ matrix.experimental }}
7+
name: ${{ matrix.ruby }}
8+
strategy:
9+
matrix:
10+
experimental: [false]
11+
ruby:
12+
- "2.5"
13+
- "2.6"
14+
- "2.7"
15+
- "3.0"
16+
- "3.1"
17+
- "3.2"
18+
- "3.3"
19+
rubyopt: [""]
20+
include:
21+
- { ruby: "3.3", rubyopt: "--enable-frozen-string-literal --debug-frozen-string-literal", experimental: false }
22+
- { ruby: head, experimental: true }
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Set up Ruby
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: ${{ matrix.ruby }}
30+
bundler-cache: true
31+
32+
- name: Run tests ${{ matrix.rubyopt }}
33+
timeout-minutes: 10
34+
run: bundle exec rake RUBYOPT="${{ matrix.rubyopt }}"

.github/workflows/isolated.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI isolated tests
2+
on: [push, pull_request]
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
ruby: [2.7]
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Set up Ruby
14+
uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: ${{ matrix.ruby }}
17+
bundler-cache: true
18+
19+
- name: Run tests
20+
run: bundle exec rake test_isolated

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)