Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed May 29, 2024
1 parent 54421d6 commit 4bdacaa
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 207 deletions.
67 changes: 1 addition & 66 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
version: 2

common_env: &common_env
# CircleCI container has two cores, but Ruby can see 32 cores. So we
# configure test-queue.
# See https://github.com/tmm1/test-queue#environment-variables
TEST_QUEUE_WORKERS: 2

spec_steps: &spec_steps
- checkout
- attach_workspace:
Expand All @@ -14,76 +8,19 @@ spec_steps: &spec_steps
- run:
name: Run specs
command: |
./tmp/cc-test-reporter before-build
COVERAGE=true bundle exec rake spec
bundle exec rake spec
./tmp/cc-test-reporter format-coverage --output tmp/codeclimate.$CIRCLE_JOB.json
- persist_to_workspace:
root: tmp
paths:
- codeclimate.*.json

jobs:
# Ruby 2.7
ruby-2.7-spec:
docker:
- image: cimg/ruby:2.7
environment:
<<: *common_env
steps:
*spec_steps

# Ruby 3.0
ruby-3.0-spec:
docker:
- image: cimg/ruby:3.0
environment:
<<: *common_env
steps:
*spec_steps

# Ruby 3.1
ruby-3.1-spec:
docker:
- image: cimg/ruby:3.1
environment:
<<: *common_env
steps:
*spec_steps

# Ruby 3.2
ruby-3.2-spec:
docker:
- image: cimg/ruby:3.2
environment:
<<: *common_env
steps:
*spec_steps

# Ruby 3.3
ruby-3.3-spec:
docker:
- image: cimg/ruby:3.3
environment:
<<: *common_env
steps:
*spec_steps

# ruby-head (nightly snapshot build)
ruby-head-spec:
docker:
- image: rubocophq/circleci-ruby-snapshot:latest
environment:
<<: *common_env
steps:
*spec_steps

# Job for downloading the Code Climate test reporter
cc-setup:
docker:
# Specify the latest version to prevent "cimg/ruby:latest not found: manifest unknown: manifest unknown" error.
- image: cimg/ruby:3.3
environment:
<<: *common_env
steps:
- run:
name: Download Code Climate test-reporter
Expand All @@ -103,8 +40,6 @@ jobs:
- image: cimg/ruby:3.3
environment:
CC_TEST_REPORTER_ID: a11b66bfbb1acdf220d5cb317b2e945a986fd85adebe29a76d411ad6d74ec31f
environment:
<<: *common_env
steps:
- attach_workspace:
at: ~/project/tmp
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Yamllint
uses: karancode/yamllint-github-action@v2.1.1
with:
yamllint_strict: true
yamllint_format: parsable
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Yamllint
# uses: karancode/yamllint-github-action@v2.1.1
# with:
# yamllint_strict: true
# yamllint_format: parsable
# yamllint_comment: true
# env:
# GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 4bdacaa

Please sign in to comment.