Skip to content

Update rubocop requirement from ~> 1.66.0 to ~> 1.67.0 (#568) #1173

Update rubocop requirement from ~> 1.66.0 to ~> 1.67.0 (#568)

Update rubocop requirement from ~> 1.66.0 to ~> 1.67.0 (#568) #1173

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.3
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
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.1", "3.2", "3.3"]
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