Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/action-filters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
github: &github
- .github/actions/**
- .github/workflows/**-ci.yml
tools: &tools
- tools/buildCommon/**
- tools/ci.psm1
props: &props
- '**.props'
tests: &tests
- test/powershell/**
- test/tools/**
- test/xUnit/**
mainSource: &mainSource
- src/**
buildModule: &buildModule
- build.psm1
source:
- *github
- *tools
- *props
- *buildModule
- *mainSource
- *tests
37 changes: 21 additions & 16 deletions .github/workflows/linux-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,27 @@ jobs:
outputs:
source: ${{ steps.filter.outputs.source }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
source:
- ".github/actions/**"
- ".github/workflows/linux-ci.yml"
- "**.props"
- build.psm1
- src/**
- test/**
- tools/buildCommon/**
- tools/ci.psm1
- "!test/common/markdown/**"
- "!test/perf/**"
- name: checkout
uses: actions/[email protected]

# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
list-files: json
filters: .github/action-filters.yml

- name: Capture outputs
run: |
"source: ${{ steps.filter.outputs.source }}"
"github: ${{ steps.filter.outputs.github }}"
"tools: ${{ steps.filter.outputs.tools }}"
"props: ${{ steps.filter.outputs.props }}"
"tests: ${{ steps.filter.outputs.tests }}"
"mainSource: ${{ steps.filter.outputs.mainSource }}"
"buildModule: ${{ steps.filter.outputs.buildModule }}"
shell: pwsh

ci_build:
name: Build PowerShell
runs-on: ubuntu-20.04
Expand Down
37 changes: 21 additions & 16 deletions .github/workflows/macos-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,27 @@ jobs:
outputs:
source: ${{ steps.filter.outputs.source }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
source:
- ".github/actions/**"
- ".github/workflows/macos-ci.yml"
- "**.props"
- build.psm1
- src/**
- test/**
- tools/buildCommon/**
- tools/ci.psm1
- "!test/common/markdown/**"
- "!test/perf/**"
- name: checkout
uses: actions/[email protected]

# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
list-files: json
filters: .github/action-filters.yml

- name: Capture outputs
run: |
"source: ${{ steps.filter.outputs.source }}"
"github: ${{ steps.filter.outputs.github }}"
"tools: ${{ steps.filter.outputs.tools }}"
"props: ${{ steps.filter.outputs.props }}"
"tests: ${{ steps.filter.outputs.tests }}"
"mainSource: ${{ steps.filter.outputs.mainSource }}"
"buildModule: ${{ steps.filter.outputs.buildModule }}"
shell: pwsh

ci_build:
name: Build PowerShell
runs-on: macos-latest
Expand Down
38 changes: 21 additions & 17 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,27 @@ jobs:
outputs:
source: ${{ steps.filter.outputs.source }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
source:
- ".github/actions/**"
- ".github/workflows/windows-ci.yml"
- "**.props"
- build.psm1
- src/**
- test/**
- tools/buildCommon/**
- tools/ci.psm1
- tools/WindowsCI.psm1
- "!test/common/markdown/**"
- "!test/perf/**"
- name: checkout
uses: actions/[email protected]

# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
list-files: json
filters: .github/action-filters.yml

- name: Capture outputs
run: |
"source: ${{ steps.filter.outputs.source }}"
"github: ${{ steps.filter.outputs.github }}"
"tools: ${{ steps.filter.outputs.tools }}"
"props: ${{ steps.filter.outputs.props }}"
"tests: ${{ steps.filter.outputs.tests }}"
"mainSource: ${{ steps.filter.outputs.mainSource }}"
"buildModule: ${{ steps.filter.outputs.buildModule }}"
shell: pwsh

ci_build:
name: Build PowerShell
needs: changes
Expand Down