Skip to content

Commit

Permalink
Move ascii_spec to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain authored and bbatsov committed May 29, 2024
1 parent fbdffc3 commit 1cfe0b3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 55 deletions.
53 changes: 0 additions & 53 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ spec_steps: &spec_steps
paths:
- codeclimate.*.json

ascii_spec_steps: &ascii_spec_steps
- checkout
- run: bundle install
- run: bundle exec rake ascii_spec

jobs:
# Ruby 2.7
ruby-2.7-spec:
Expand All @@ -36,13 +31,6 @@ jobs:
<<: *common_env
steps:
*spec_steps
ruby-2.7-ascii_spec:
docker:
- image: cimg/ruby:2.7
environment:
<<: *common_env
steps:
*ascii_spec_steps

# Ruby 3.0
ruby-3.0-spec:
Expand All @@ -52,13 +40,6 @@ jobs:
<<: *common_env
steps:
*spec_steps
ruby-3.0-ascii_spec:
docker:
- image: cimg/ruby:3.0
environment:
<<: *common_env
steps:
*ascii_spec_steps

# Ruby 3.1
ruby-3.1-spec:
Expand All @@ -68,13 +49,6 @@ jobs:
<<: *common_env
steps:
*spec_steps
ruby-3.1-ascii_spec:
docker:
- image: cimg/ruby:3.1
environment:
<<: *common_env
steps:
*ascii_spec_steps

# Ruby 3.2
ruby-3.2-spec:
Expand All @@ -84,13 +58,6 @@ jobs:
<<: *common_env
steps:
*spec_steps
ruby-3.2-ascii_spec:
docker:
- image: cimg/ruby:3.2
environment:
<<: *common_env
steps:
*ascii_spec_steps

# Ruby 3.3
ruby-3.3-spec:
Expand All @@ -100,13 +67,6 @@ jobs:
<<: *common_env
steps:
*spec_steps
ruby-3.3-ascii_spec:
docker:
- image: cimg/ruby:3.3
environment:
<<: *common_env
steps:
*ascii_spec_steps

# ruby-head (nightly snapshot build)
ruby-head-spec:
Expand All @@ -116,13 +76,6 @@ jobs:
<<: *common_env
steps:
*spec_steps
ruby-head-ascii_spec:
docker:
- image: rubocophq/circleci-ruby-snapshot:latest
environment:
<<: *common_env
steps:
*ascii_spec_steps

# Job for downloading the Code Climate test reporter
cc-setup:
Expand Down Expand Up @@ -169,27 +122,21 @@ workflows:
- ruby-2.7-spec:
requires:
- cc-setup
- ruby-2.7-ascii_spec
- ruby-3.0-spec:
requires:
- cc-setup
- ruby-3.0-ascii_spec
- ruby-3.1-spec:
requires:
- cc-setup
- ruby-3.1-ascii_spec
- ruby-3.2-spec:
requires:
- cc-setup
- ruby-3.2-ascii_spec
- ruby-3.3-spec:
requires:
- cc-setup
- ruby-3.3-ascii_spec
- ruby-head-spec:
requires:
- cc-setup
- ruby-head-ascii_spec

- cc-upload-coverage:
requires:
Expand Down
29 changes: 27 additions & 2 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,33 @@ jobs:
bundler-cache: true
- name: spec
run: bundle exec rake spec

ascii_spec:
name: Ascii Spec - ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}-latest

strategy:
fail-fast: false
matrix:
os: [ubuntu, windows]
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', 'head']
include:
- os: ubuntu
ruby: jruby-9.4
- os: windows
ruby: mingw
exclude:
- os: windows
ruby: 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: ascii_spec
run: bundle exec rake ascii_spec

Expand Down Expand Up @@ -112,8 +139,6 @@ jobs:
bundler-cache: true
- name: spec
run: bundle exec rake spec
- name: ascii_spec
run: bundle exec rake ascii_spec

prism:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1cfe0b3

Please sign in to comment.