2022-05-22 05:20:50 +00:00
|
|
|
name: Manual Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test changed-files
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
2022-11-02 14:28:18 +00:00
|
|
|
max-parallel: 7
|
2022-05-22 05:20:50 +00:00
|
|
|
matrix:
|
2022-09-02 21:24:30 +00:00
|
|
|
platform: [ubuntu-latest, ubuntu-22.04, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022]
|
2022-05-22 05:20:50 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Run changed-files with defaults
|
|
|
|
id: changed-files
|
|
|
|
uses: ./
|
|
|
|
|
|
|
|
- name: Show output
|
|
|
|
run: |
|
|
|
|
echo '${{ toJSON(steps.changed-files.outputs) }}'
|
2022-06-13 04:09:49 +00:00
|
|
|
|
2022-05-23 03:57:41 +00:00
|
|
|
- name: Run changed-files with glob filtering
|
|
|
|
id: changed-files-glob
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
files: |
|
|
|
|
test/*.txt
|
|
|
|
|
|
|
|
- name: Show output
|
|
|
|
run: |
|
|
|
|
echo '${{ toJSON(steps.changed-files-glob.outputs) }}'
|
2022-11-02 14:28:18 +00:00
|
|
|
|
2022-05-25 21:47:58 +00:00
|
|
|
- name: Run changed-files with glob filtering and all_old_new_renamed_files
|
|
|
|
id: changed-files-glob-all-old-new-renamed-files
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
include_all_old_new_renamed_files: true
|
|
|
|
files: |
|
|
|
|
test/*.txt
|
|
|
|
|
|
|
|
- name: Show output
|
|
|
|
run: |
|
|
|
|
echo '${{ toJSON(steps.changed-files-glob-all-old-new-renamed-files.outputs) }}'
|