Version bump #11
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: ['3.2'] | |
| fail-fast: false | |
| max-parallel: 4 | |
| env: | |
| RAILS_ENV: test | |
| BUNDLE_JOBS: 4 | |
| BUNDLE_RETRY: 3 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: Add platform to bundle | |
| run: | | |
| bundle lock --add-platform x86_64-linux | |
| bundle lock --add-platform ruby | |
| bundle lock --add-platform x86_64-darwin | |
| bundle lock --add-platform arm64-darwin | |
| - name: Install dependencies | |
| run: | | |
| gem install bundler | |
| bundle config path vendor/bundle | |
| bundle install --jobs 4 --retry 3 | |
| - name: Cache RuboCop | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/rubocop_cache | |
| key: ${{ runner.os }}-rubocop-${{ hashFiles('**/.rubocop.yml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-rubocop- | |
| - name: Run tests | |
| run: bundle exec rspec --format progress | |
| - name: Run rubocop | |
| run: bundle exec rubocop --parallel --format github |