Skip to content

Commit

Permalink
Migrate to GitHub Actions from CircleCI
Browse files Browse the repository at this point in the history
This PR will centralize CI to GitHub Actions as introduced in
rubocop#275.
  • Loading branch information
koic committed Nov 27, 2023
1 parent 14ba599 commit 4c047cb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 54 deletions.
52 changes: 0 additions & 52 deletions .circleci/config.yml

This file was deleted.

46 changes: 44 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,48 @@ concurrency:
cancel-in-progress: true

jobs:
main:
name: >-
${{ matrix.ruby }} ${{ matrix.entry.name }}
runs-on: ubuntu-latest
env:
# See https://github.com/tmm1/test-queue#environment-variables
TEST_QUEUE_WORKERS: 2
strategy:
fail-fast: false
matrix:
os: [ubuntu]
ruby: ['2.7', '3.0', '3.1', '3.2', 'head']

steps:
- name: checkout
uses: actions/checkout@v4
- name: set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: spec
run: bundle exec rake spec
- name: internal_investigation
run: bundle exec rake internal_investigation

jruby:
name: JRuby 9.4
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: jruby-9.4
bundler-cache: true
- name: spec
run: bundle exec rake spec
- name: internal_investigation
run: bundle exec rake internal_investigation

oldest_supported_rubocop:
runs-on: ubuntu-latest
name: The oldest supported RuboCop version
Expand All @@ -28,5 +70,5 @@ jobs:
with:
ruby-version: 2.7
bundler-cache: true
- name: test
run: bundle exec rake
- name: spec
run: bundle exec rake spec

0 comments on commit 4c047cb

Please sign in to comment.