[PF] Rubocop offenses are corrected, CHANGELOG entries are added (#1017) #814
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| pull_request: | |
| types: [ | |
| synchronize, # PR was updated | |
| opened, # PR was open | |
| reopened # PR was reopened | |
| ] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: [ '3.2', '3.3', '3.4', '4.0' ] | |
| gemfile: [rails.7.2.activerecord, rails.8.0.activerecord, rails.8.1.activerecord] | |
| name: ${{ matrix.ruby }}-${{ matrix.gemfile }} | |
| env: | |
| BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
| services: | |
| redis: | |
| # Docker Hub image | |
| image: redis | |
| ports: | |
| - '6379:6379' | |
| # Set health checks to wait until redis has started | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:8.19.13 | |
| ports: | |
| - '9250:9200' | |
| env: | |
| discovery.type: single-node | |
| xpack.security.enabled: 'false' | |
| ES_JAVA_OPTS: '-Xms500m -Xmx500m' | |
| # Set health checks to wait until Elasticsearch has started | |
| options: >- | |
| --health-cmd "curl -sf http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=5s" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Tests | |
| run: bundle exec rspec | |
| rubocop: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.4 | |
| bundler-cache: true | |
| - run: bundle exec rubocop --format github |