.github/workflows/rspec.yml in cpl-1.4.0 vs .github/workflows/rspec.yml in cpl-2.2.0

- old
+ new

@@ -3,38 +3,26 @@ on: push: branches: - main pull_request: + workflow_dispatch: jobs: - rspec: - strategy: - matrix: - os: - - ubuntu-latest - - macos-latest - ruby: - - "2.7" - - "3.0" - runs-on: ${{ matrix.os }} - name: RSpec - env: - RAILS_ENV: test - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - name: Install dependencies - run: bundle install - - name: Run tests - run: bundle exec rspec - - name: Upload coverage results - uses: actions/upload-artifact@master - if: always() - with: - name: coverage-report-${{ github.run_id }}-${{ matrix.os }}-${{ matrix.ruby }} - path: coverage + rspec-fast: + name: RSpec (Fast) + uses: ./.github/workflows/rspec-shared.yml + with: + os-version: ubuntu-latest + ruby-version: "2.7" + test-tag: ~slow + secrets: inherit + + rspec-slow: + name: RSpec (Slow) + uses: ./.github/workflows/rspec-shared.yml + if: github.event_name == 'workflow_dispatch' + with: + os-version: ubuntu-latest + ruby-version: "2.7" + test-tag: slow + secrets: inherit