Skip to content

Commit 7474a84

Browse files
authored
Merge pull request #277 from koic/migrate_to_gha_from_circleci
Migrate to GitHub Actions from CircleCI
2 parents d0c87f2 + b4b1214 commit 7474a84

File tree

2 files changed

+56
-54
lines changed

2 files changed

+56
-54
lines changed

.circleci/config.yml

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

.github/workflows/test.yml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,63 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15+
main:
16+
name: Ruby ${{ matrix.ruby }}
17+
runs-on: ubuntu-latest
18+
env:
19+
# See https://github.com/tmm1/test-queue#environment-variables
20+
TEST_QUEUE_WORKERS: 2
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
os: [ubuntu]
25+
ruby: ['2.7', '3.0', '3.1', '3.2', 'head']
26+
27+
steps:
28+
- name: checkout
29+
uses: actions/checkout@v4
30+
- name: set up Ruby
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: ${{ matrix.ruby }}
34+
bundler-cache: true
35+
- name: test
36+
run: bundle exec rake test
37+
- name: internal_investigation
38+
run: bundle exec rake internal_investigation
39+
40+
jruby:
41+
name: JRuby 9.4
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: checkout
45+
uses: actions/checkout@v4
46+
- name: set up Ruby
47+
uses: ruby/setup-ruby@v1
48+
with:
49+
ruby-version: jruby-9.4
50+
bundler-cache: true
51+
- name: test
52+
run: bundle exec rake test
53+
- name: internal_investigation
54+
run: bundle exec rake internal_investigation
55+
56+
documentation_checks:
57+
runs-on: ubuntu-latest
58+
name: Check documentation syntax
59+
steps:
60+
- uses: actions/checkout@v4
61+
- name: set up Ruby
62+
uses: ruby/setup-ruby@v1
63+
with:
64+
ruby-version: 3.2
65+
bundler-cache: true
66+
- name: test
67+
run: bundle exec rake documentation_syntax_check
68+
1569
oldest_supported_rubocop:
1670
runs-on: ubuntu-latest
17-
name: The oldest supported RuboCop version
71+
name: Check the oldest supported RuboCop version
1872
steps:
1973
- uses: actions/checkout@v4
2074
- name: Use the oldest supported RuboCop
@@ -29,4 +83,4 @@ jobs:
2983
ruby-version: 2.7
3084
bundler-cache: true
3185
- name: test
32-
run: bundle exec rake
86+
run: bundle exec rake test

0 commit comments

Comments
 (0)