Skip to content

Commit

Permalink
chore(CI): build app only on change in the app folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bptodorova authored Jan 23, 2024
2 parents 1176474 + cef8507 commit 112ac27
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches-ignore:
- master
paths-ignore:
- 'knowledge-base/**'

env:
NODE_OPTIONS: --max_old_space_size=6144
Expand All @@ -22,44 +24,59 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Get changed files
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
examples:
- 'examples/**'
- name: Build Coffee warehouse nextjs app
working-directory: ./examples/coffee-warehouse-nextjs
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build A Sales Dashboard app
working-directory: ./examples/kendo-react-build-a-sales-dashboard
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build File Manager app
working-directory: ./examples/kendo-react-file-manager
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build Finance Portfolio app
working-directory: ./examples/kendo-react-finance-portfolio
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build Homepage demo app
working-directory: ./examples/kendo-react-homepage-demo
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build React Nextjs app
working-directory: ./examples/kendo-react-nextjs
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build React Nodejs Express app
working-directory: ./examples/kendo-react-nodejs-express
if: steps.changes.outputs.examples == 'true'
run: |
cd server
npm ci
Expand All @@ -69,36 +86,42 @@ jobs:
- name: Build React Sales Dashboard app
working-directory: ./examples/kendo-react-sales-dashboard
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build React SSR app
working-directory: ./examples/kendo-react-ssr
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build React Stackblitz app
working-directory: ./examples/kendo-react-stackblitz-app
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build React Admin Dashboard app
working-directory: ./examples/react-admin-dashboard
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build React Coffee Warehouse app
working-directory: ./examples/react-coffee-warehouse
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build
- name: Build React Grid Live Data app
working-directory: ./examples/react-grid-live-data
if: steps.changes.outputs.examples == 'true'
run: |
npm ci
npm run build

0 comments on commit 112ac27

Please sign in to comment.