Skip to content

Commit

Permalink
Update workflow to detect changes in different directories
Browse files Browse the repository at this point in the history
- Added new directory filters for detecting changes in 'tests' and 'playground' directories. Adjusted conditional statements based on the detected changes.
  • Loading branch information
winromulus committed Jun 15, 2024
1 parent 1b228bf commit e15f803
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,38 @@ jobs:
permissions:
pull-requests: read
outputs:
src_changed: ${{ steps.src_changed.outputs.changes }}
src_changed: ${{ steps.src_changed.outputs.src }}
steps:

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

- name: src - identify source changes
- name: tools - detect changes
id: src_changed
uses: dorny/paths-filter@v3
with:
base: ${{ github.ref }}
filters: |
src:
- 'src/**'
solution:
- 'ES.FX.sln'
build:
- 'Directory.Build.props'
tests:
- 'tests/**'
playground:
- 'playground/**'
- name: build
if: steps.src_changed.outputs.changes == 'true'
uses: ./.github/actions/build
if: steps.src_changed.outputs.src == 'true'
with:
configuration: Debug
useVersioning: false

- name: test
if: steps.src_changed.outputs.src == 'true'
if: steps.src_changed.outputs.changes == 'true'
uses: ./.github/actions/test

cd:
Expand Down

0 comments on commit e15f803

Please sign in to comment.