Skip to content

Commit

Permalink
Remove unnecessary prFilter jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaKhD committed Sep 4, 2024
1 parent b1c1d53 commit db9fc58
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 322 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,15 @@ name: Build and pack DevExtreme npm packages

on:
pull_request:
paths:
- '**'
- '!apps/**/*.md'
push:
branches: [24_2]

jobs:

prFilter:
runs-on: ubuntu-latest
outputs:
success: ${{ steps.filter.outputs.result }}
steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Filter
id: filter
uses: DevExpress/github-actions/pr-filter@main
with:
paths: '**;!apps/**/*.md'

build:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2

steps:
Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/default_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:

on:
pull_request:
paths:
- '**'
- '!apps/**/*.md'
push:
branches:
- "[0-9][0-9]_[0-9]"
Expand All @@ -15,27 +18,8 @@ env:

jobs:

prFilter:
runs-on: ubuntu-latest
outputs:
success: ${{ steps.filter.outputs.result }}
steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Filter
id: filter
uses: DevExpress/github-actions/pr-filter@main
with:
paths: '**;!apps/**/*.md'

main:
name: main
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 30

Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/demos_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,17 @@ concurrency:

on:
pull_request:
paths:
- '**'
- '!apps/**/*.md'
push:
branches:
- "[0-9][0-9]_[0-9]"

jobs:

prFilter:
runs-on: ubuntu-latest
outputs:
success: ${{ steps.filter.outputs.result }}
steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Filter
id: filter
uses: DevExpress/github-actions/pr-filter@main
with:
paths: '**;!apps/**/*.md'

test:
name: Run unit tests
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: ubuntu-latest
timeout-minutes: 60

Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/demos_visual_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:

on:
pull_request:
paths:
- '**'
- '!apps/**/*.md'
push:
branches:
- "[0-9][0-9]_[0-9]"
Expand All @@ -18,27 +21,8 @@ env:

jobs:

prFilter:
runs-on: ubuntu-latest
outputs:
success: ${{ steps.filter.outputs.result }}
steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Filter
id: filter
uses: DevExpress/github-actions/pr-filter@main
with:
paths: '**;!apps/**/*.md'

build:
name: Build devextreme
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: ubuntu-latest
timeout-minutes: 20

Expand Down
24 changes: 3 additions & 21 deletions .github/workflows/demos_visual_tests_frameworks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:

on:
pull_request:
paths:
- '**'
- '!apps/**/*.md'
push:
branches:
- "[0-9][0-9]_[0-9]"
Expand All @@ -18,27 +21,8 @@ env:

jobs:

prFilter:
runs-on: ubuntu-latest
outputs:
success: ${{ steps.filter.outputs.result }}
steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Filter
id: filter
uses: DevExpress/github-actions/pr-filter@main
with:
paths: '**;!apps/**/*.md'

build-devextreme:
name: Build DevExtreme
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: ubuntu-latest
timeout-minutes: 40

Expand Down Expand Up @@ -174,8 +158,6 @@ jobs:
retention-days: 1

get-changes:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: ubuntu-latest
name: Get changed demos
timeout-minutes: 5
Expand Down
36 changes: 3 additions & 33 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:

on:
pull_request:
paths:
- '**'
- '!apps/**/*.md'
push:
branches: [24_2]

Expand All @@ -15,26 +18,7 @@ env:

jobs:

prFilter:
runs-on: ubuntu-latest
outputs:
success: ${{ steps.filter.outputs.result }}
steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Filter
id: filter
uses: DevExpress/github-actions/pr-filter@main
with:
paths: '**;!apps/**/*.md'

Renovation:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -82,8 +66,6 @@ jobs:
run: pnpx nx lint-renovation

TS:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -143,8 +125,6 @@ jobs:
run: pnpx nx lint

JS:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -192,8 +172,6 @@ jobs:
run: pnpx nx lint-js

texts:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -235,8 +213,6 @@ jobs:
run: pnpx nx lint-texts

CSS:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -278,8 +254,6 @@ jobs:
run: pnpx nx lint

pnpm_lock:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 10
steps:
Expand Down Expand Up @@ -328,8 +302,6 @@ jobs:
run: git diff --exit-code pnpm-lock.yaml

component_exports:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 10
steps:
Expand Down Expand Up @@ -381,8 +353,6 @@ jobs:
fi
wrappers:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 10

Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:

on:
pull_request:
paths:
- '**'
- '!apps/**/*.md'
push:
branches: [24_2]

Expand All @@ -16,26 +19,7 @@ env:

jobs:

prFilter:
runs-on: ubuntu-latest
outputs:
success: ${{ steps.filter.outputs.result }}
steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Filter
id: filter
uses: DevExpress/github-actions/pr-filter@main
with:
paths: '**;!apps/**/*.md'

checks:
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
runs-on: devextreme-shr2
timeout-minutes: 5
steps:
Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/playgrounds_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:

on:
pull_request:
paths:
- '**'
- '!apps/**/*.md'
push:
branches: [24_2]

Expand All @@ -15,27 +18,8 @@ env:

jobs:

prFilter:
runs-on: ubuntu-latest
outputs:
success: ${{ steps.filter.outputs.result }}
steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Filter
id: filter
uses: DevExpress/github-actions/pr-filter@main
with:
paths: '**;!apps/**/*.md'

build:
name: build
needs: [ prFilter ]
if: needs.prFilter.outputs.success == 'true'
strategy:
fail-fast: false

Expand Down
Loading

0 comments on commit db9fc58

Please sign in to comment.