.github/workflows/test.yml in capybara-screenshot-diff-1.5.5 vs .github/workflows/test.yml in capybara-screenshot-diff-1.6.0

- old
+ new

@@ -1,37 +1,22 @@ name: Test on: push: branches: [ master ] - pull_request_target: - branches: [ master ] pull_request: + paths: + - '*.rb' + - '*.gemfile' + - '!bin/**' env: BUNDLE_GEMFILE: 'gemfiles/rails70_gems.rb' FERRUM_PROCESS_TIMEOUT: '15' WD_CACHE_TIME: '864000' # 10 days jobs: - lint: - name: Lint - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.0' - bundler-cache: true - - - name: Run Standard Ruby linter - run: bin/standardrb --no-fix --fail-fast - test: name: Functional Testing runs-on: ubuntu-20.04 # In order to install libvips 8.9+ version steps: @@ -63,12 +48,12 @@ with: name: coverage path: coverage matrix: - name: Test Integration - needs: [ 'test', 'lint' ] + name: Test Integration Rails & Ruby + needs: [ 'test' ] runs-on: ubuntu-20.04 strategy: matrix: ruby-version: [ '3.1', '3.0', '2.7', '2.6', 'jruby' ] @@ -77,13 +62,14 @@ - 'rails60_gems.rb' - 'rails52.gemfile' include: - ruby-version: 2.7 gemfile: rails70_gems.rb - # NOTE: We are testing rails 7 + ruby 3 in the `test` job - # - ruby-version: 3.0 - # gemfile: rails70_gems.rb + - ruby-version: 3.0 + gemfile: rails70_gems.rb + - ruby-version: 3.1 + gemfile: rails70_gems.rb env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }} steps: - name: Checkout code @@ -100,12 +86,12 @@ - name: Run tests run: bundle exec rake test matrix_screenshot_driver: - name: Test Integration - needs: [ 'test', 'lint' ] + name: Test Integration Capybara & Image Drivers + needs: [ 'test' ] runs-on: ubuntu-20.04 strategy: matrix: screenshot-driver: [ 'vips', 'chunky_png' ] @@ -119,10 +105,10 @@ uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.0' + ruby-version: '3.1' bundler-cache: true - name: Install libvips run: sudo apt install libvips libvips-dev libvips-tools