Skip to content

Update rubocop-performance requirement from ~> 1.19.0 to ~> 1.20.1 #1098

Update rubocop-performance requirement from ~> 1.19.0 to ~> 1.20.1

Update rubocop-performance requirement from ~> 1.19.0 to ~> 1.20.1 #1098

Workflow file for this run

name: Test
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
rubocop:
name: Rubocop
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Lint
run: bundle exec rake rubocop
rspec:
name: Rspec ruby-${{ matrix.ruby }}-oj-${{ matrix.oj }}
runs-on: ubuntu-latest
needs: rubocop
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2"]
oj: [false, true]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
env:
WITH_OJ_GEM: ${{ matrix.oj }}
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: be263ef9412dc65a7aa8dfb6e8162d5c7cfb3307fae0a444cde9dd6ca6f52848
WITH_OJ_GEM: ${{ matrix.oj }}
RUBY_VERSION: ${{ matrix.ruby }}
with:
coverageCommand: bundle exec rake test:coverage
coverageLocations: coverage/coverage.json:simplecov
- name: Upload report
uses: actions/upload-artifact@v4
with:
name: allure-results-${{ matrix.ruby }}-oj-${{ matrix.oj }}
path: "*/reports/allure-results/"
retention-days: 1
report:
name: Allure report
runs-on: ubuntu-latest
needs: rspec
if: always()
steps:
- name: Download allure-results
uses: actions/download-artifact@v4
- name: Publish allure report
uses: andrcuns/[email protected]
env:
GOOGLE_CLOUD_CREDENTIALS_JSON: ${{ secrets.GOOGLE_CLOUD_CREDENTIALS_JSON }}
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALLURE_JOB_NAME: rspec
with:
storageType: gcs
resultsGlob: "**/allure-results"
bucket: allure-test-reports
prefix: allure-ruby/$GITHUB_REF
updatePr: description
summary: behaviors
copyLatest: true
ignoreMissingResults: false
summaryTableType: ascii
debug: true