Skip to content

Update CD and CI workflows for source change detection #3

Update CD and CI workflows for source change detection

Update CD and CI workflows for source change detection #3

Workflow file for this run

name: CI
on:
push:
branches:
- '**' # Matches all branches
pull_request:
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
outputs:
src_changed: ${{ steps.src_changed.outputs.changes }}
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: src - identify source changes
id: src_changed
uses: dorny/paths-filter@v2
with:
base: ${{ github.ref }}
filters: |
src:
- 'src/**'
solution:
- 'ES.FX.sln'
build:
- 'Directory.Build.props'
- name: build
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'
uses: ./.github/actions/test