mirror of
https://github.com/mastodon/mastodon
synced 2024-11-30 15:58:14 +09:00
Move test migrations paths check to workflow level (#30702)
This commit is contained in:
parent
36d819bef3
commit
79b0e192d9
27
.github/workflows/test-migrations.yml
vendored
27
.github/workflows/test-migrations.yml
vendored
@ -6,25 +6,24 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
- 'stable-*'
|
- 'stable-*'
|
||||||
|
paths:
|
||||||
|
- 'Gemfile*'
|
||||||
|
- '.ruby-version'
|
||||||
|
- '**/*.rb'
|
||||||
|
- '.github/workflows/test-migrations.yml'
|
||||||
|
- 'lib/tasks/tests.rake'
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'Gemfile*'
|
||||||
|
- '.ruby-version'
|
||||||
|
- '**/*.rb'
|
||||||
|
- '.github/workflows/test-migrations.yml'
|
||||||
|
- 'lib/tasks/tests.rake'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_job:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- id: skip_check
|
|
||||||
uses: fkirc/skip-duplicate-actions@v5
|
|
||||||
with:
|
|
||||||
paths: '["Gemfile*", ".ruby-version", "**/*.rb", ".github/workflows/test-migrations.yml", "lib/tasks/tests.rake"]'
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: pre_job
|
|
||||||
if: needs.pre_job.outputs.should_skip != 'true'
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
Loading…
Reference in New Issue
Block a user