Set file pattern only if it is passed from the from command line #142
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: Specs | |
on: | |
push: | |
branches: [ master, one-stable, two-stable ] | |
pull_request: | |
branches: [ master, one-stable, two-stable ] | |
jobs: | |
spec: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: [ '3.1', '3.2', '3.3', 'head' ] | |
rails: [ 'gemfiles/Gemfile.rails-6.1.x', 'gemfiles/Gemfile.rails-7.0.x', 'gemfiles/Gemfile.rails-7.1.x'] | |
exclude: [] | |
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }} | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.rails }} | |
name: Ruby ${{ matrix.ruby }} ${{ matrix.rails }} specs | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake spec |