Skip to content

Commit

Permalink
Set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jun 28, 2024
1 parent ea34101 commit 3af75eb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}-latest

strategy:
fail-fast: false
matrix:
os: [ubuntu]
ruby: [ head, '3.2', '3.3' ]
ruby-opt: [""]
include:
- ruby: "3.3"
ruby-opt: "--enable-frozen-string-literal --debug-frozen-string-literal"
os: "ubuntu"

steps:
- name: Install g++
run: sudo apt-get install g++
- name: Install libicu
run: sudo apt-get install libicu-dev
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- name: Install dependencies
run: bundle install
- name: Run tests ${{ matrix.rubyopt }}
run: bundle exec rake RUBYOPT="${{ matrix.rubyopt }}"

0 comments on commit 3af75eb

Please sign in to comment.