Add bundler before/after eval hooks for plugins #3238
Workflow file for this run
This file contains 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: realworld | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ci-${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
bundler: | |
name: Realworld Bundler ${{ matrix.bundler.name }} on ${{ matrix.os.name }} (${{ matrix.ruby.name }}) | |
runs-on: ${{ matrix.os.value }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- { name: Ubuntu, value: ubuntu-22.04 } | |
ruby: | |
- { name: ruby-3.0, value: 3.0.6 } | |
- { name: ruby-3.1, value: 3.1.4 } | |
- { name: ruby-3.2, value: 3.2.3 } | |
- { name: ruby-3.3, value: 3.3.0 } | |
bundler: | |
- { name: 2, value: '' } | |
- { name: 3, value: 3.0.0 } | |
include: | |
- { os: { name: macOS, value: macos-14 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.0, value: 3.0.6 } } | |
- { os: { name: macOS, value: macos-14 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.1, value: 3.1.4 } } | |
- { os: { name: macOS, value: macos-14 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.2, value: 3.2.3 } } | |
- { os: { name: macOS, value: macos-14 }, bundler: { name: 2, value: '' }, ruby: { name: ruby-3.3, value: 3.3.0 } } | |
env: | |
RGV: .. | |
RUBYOPT: --disable-gems | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 | |
with: | |
ruby-version: ${{ matrix.ruby.value }} | |
bundler: none | |
- name: Prepare dependencies | |
run: bin/rake spec:deps | |
- name: Replace version | |
run: BUNDLER_SPEC_SUB_VERSION=${{ matrix.bundler.value }} bin/rake override_version | |
if: matrix.bundler.value != '' | |
- name: Run Test | |
run: bin/rake spec:realworld | |
- name: Upload used cassettes as artifact | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | |
with: | |
name: cassettes-bundler-${{ matrix.bundler.name }}-${{ matrix.os.value }}-${{ matrix.ruby.name }} | |
path: ./bundler/spec/support/artifice/used_cassettes.txt | |
timeout-minutes: 20 | |
system_rubygems_bundler: | |
name: Realworld Bundler ${{ matrix.bundler.name }} against system Rubygems (${{ matrix.ruby.name }}) | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { bundler: { name: 2, value: '' }, ruby: { name: ruby-3.0, value: 3.0.6 } } | |
- { bundler: { name: 2, value: '' }, ruby: { name: ruby-3.1, value: 3.1.4 } } | |
- { bundler: { name: 2, value: '' }, ruby: { name: ruby-3.2, value: 3.2.3 } } | |
- { bundler: { name: 2, value: '' }, ruby: { name: ruby-3.3, value: 3.3.0 } } | |
- { bundler: { name: 3, value: 3.0.0 }, ruby: { name: ruby-3.0, value: 3.0.6 } } | |
- { bundler: { name: 3, value: 3.0.0 }, ruby: { name: ruby-3.1, value: 3.1.4 } } | |
- { bundler: { name: 3, value: 3.0.0 }, ruby: { name: ruby-3.2, value: 3.2.3 } } | |
- { bundler: { name: 3, value: 3.0.0 }, ruby: { name: ruby-3.3, value: 3.3.0 } } | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 | |
with: | |
ruby-version: ${{ matrix.ruby.value }} | |
bundler: none | |
- name: Prepare dependencies | |
run: bin/rake spec:deps | |
- name: Replace version | |
run: BUNDLER_SPEC_SUB_VERSION=${{ matrix.bundler.value }} bin/rake override_version | |
if: matrix.bundler.value != '' | |
- name: Run Test | |
run: bin/rake spec:realworld | |
- name: Upload used cassettes as artifact | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | |
with: | |
name: cassettes-system-rubygems-bundler-${{ matrix.bundler.name }}-${{ matrix.ruby.name }} | |
path: ./bundler/spec/support/artifice/used_cassettes.txt | |
timeout-minutes: 20 | |
check_unused_cassettes: | |
name: Check unused cassettes | |
needs: [bundler, system_rubygems_bundler] | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@5f19ec79cedfadb78ab837f95b87734d0003c899 # v1.173.0 | |
with: | |
ruby-version: 3.3.0 | |
bundler: none | |
- name: Download all used cassettes as artifacts | |
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4 | |
with: | |
path: ./bundler/spec/support/artifice/used_vcr_cassettes | |
- name: Check unused cassettes | |
run: bin/rake spec:realworld:check_unused_cassettes |