Skip to content

Commit

Permalink
Setup GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Mar 28, 2024
1 parent 35350e2 commit 97445fc
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 36 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,37 @@
name: CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
name: ${{ matrix.ruby }}
strategy:
matrix:
experimental: [false]
ruby:
- "2.5"
- "2.6"
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
include:
- { ruby: "3.3", rubyopt: "--enable-frozen-string-literal" }
- { ruby: jruby, experimental: true }
- { ruby: jruby-head, experimental: true }
- { ruby: truffleruby, experimental: true }
- { ruby: truffleruby-head, experimental: true }
- { ruby: head, experimental: true }

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run tests
timeout-minutes: 10
run: bundle exec rake RUBYOPT="${{ matrix.rubyopt }}"
20 changes: 20 additions & 0 deletions .github/workflows/isolated.yml
@@ -0,0 +1,20 @@
name: CI isolated tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7]

steps:
- uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run tests
run: bundle exec rake test_isolated
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

0 comments on commit 97445fc

Please sign in to comment.