Skip to content

Commit a15089f

Browse files
Watson1978kou
andauthored
CI: Migrate to GitHub Actions (#11)
Fix #9 Thanks Travis CI for providing free CI resource so far! --------- Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
1 parent e53b299 commit a15089f

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
ruby-versions:
12+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
13+
with:
14+
engine: cruby
15+
min_version: 2.7
16+
17+
test:
18+
needs: ruby-versions
19+
name: ${{ matrix.os }} ${{ matrix.ruby }}
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
25+
os:
26+
- ubuntu-latest
27+
- macos-latest
28+
steps:
29+
- uses: actions/checkout@v6
30+
- name: Set up Ruby
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: ${{ matrix.ruby }}
34+
bundler-cache: true
35+
36+
- name: Run tests
37+
run: bundle exec rake

.travis.yml

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

0 commit comments

Comments
 (0)