.github/workflows/ruby-tests.yml in superconfig-1.0.0 vs .github/workflows/ruby-tests.yml in superconfig-2.0.1
- old
+ new
@@ -1,34 +1,41 @@
---
name: ruby-tests
on:
- pull_request:
+ pull_request_target:
push:
+ branches:
+ - main
workflow_dispatch:
inputs: {}
jobs:
build:
name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }}
runs-on: "ubuntu-latest"
+ if: |
+ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' ||
+ github.actor != 'dependabot[bot]'
strategy:
fail-fast: false
matrix:
- ruby: ["2.7", "3.0"]
+ ruby: ["2.7", "3.0", "3.1"]
gemfile:
- Gemfile
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- - uses: actions/cache@v2
+ - uses: actions/cache@v3
with:
path: vendor/bundle
key: >
- ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }}
+ ${{ runner.os }}-${{ matrix.ruby }}-gems-${{
+ hashFiles(matrix.gemfile) }}
restore-keys: >
- ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }}
+ ${{ runner.os }}-${{ matrix.ruby }}-gems-${{
+ hashFiles(matrix.gemfile) }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}