Skip to content

One more instance of env-vs-matrix inconsistency #2

One more instance of env-vs-matrix inconsistency

One more instance of env-vs-matrix inconsistency #2

name: ruby_event_store-newrelic_test
on:
repository_dispatch:
types:
- script
workflow_dispatch:
push:
paths:
- "contrib/ruby_event_store-newrelic/**"
- ".github/workflows/ruby_event_store-newrelic_test.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
pull_request:
types: [opened, reopened]
paths:
- "contrib/ruby_event_store-newrelic/**"
- ".github/workflows/ruby_event_store-newrelic_test.yml"
- "support/**"
- "!support/bundler/**"
- "!support/ci/**"
jobs:
test:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-newrelic
RUBY_VERSION: "${{ matrix.ruby_version }}"
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
strategy:
fail-fast: false
matrix:
include:
- ruby_version: ruby-3.2
bundle_gemfile: Gemfile
- ruby_version: ruby-3.1
bundle_gemfile: Gemfile
- ruby_version: ruby-3.0
bundle_gemfile: Gemfile
steps:
- uses: actions/checkout@v3
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make test
working-directory: ${{ env.WORKING_DIRECTORY }}
mutate:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: contrib/ruby_event_store-newrelic
BUNDLE_GEMFILE: Gemfile
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: test -e ${{ env.BUNDLE_GEMFILE }}.lock
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.2
bundler-cache: true
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make mutate-changes
working-directory: ${{ env.WORKING_DIRECTORY }}