@@ -1009,16 +1009,19 @@ jobs:
1009
1009
bash
1010
1010
test-dir-names-deleted-files-include-only-deleted-dirs-directory :
1011
1011
name : Test dir names deleted files include only deleted dirs
1012
- runs-on : ubuntu-latest
1012
+ runs-on : ${{ matrix.platform }}
1013
1013
needs : build
1014
+ strategy :
1015
+ matrix :
1016
+ platform : [ubuntu-latest, macos-latest, windows-latest]
1014
1017
if : needs.build.outputs.files_changed != 'true'
1015
1018
permissions :
1016
1019
contents : read
1017
1020
steps :
1018
1021
- name : Checkout branch
1019
1022
uses : actions/checkout@v4
1020
1023
with :
1021
- ref : cd1e384723e4d1a184568182ac2b27c53ebf017f
1024
+ ref : ${{ github.event.pull_request.head.sha }}
1022
1025
repository : ${{ github.event.pull_request.head.repo.full_name }}
1023
1026
submodules : true
1024
1027
fetch-depth : 2
@@ -1030,6 +1033,7 @@ jobs:
1030
1033
sha : cd1e384723e4d1a184568182ac2b27c53ebf017f
1031
1034
dir_names : true
1032
1035
dir_names_deleted_files_include_only_deleted_dirs : true
1036
+ fetch_depth : 60000
1033
1037
- name : Show output
1034
1038
run : |
1035
1039
echo '${{ toJSON(steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory.outputs) }}'
@@ -1049,6 +1053,35 @@ jobs:
1049
1053
exit 1
1050
1054
shell :
1051
1055
bash
1056
+ - name : Run changed-files with dir_names and dir_names_deleted_files_include_only_deleted_dirs with the test directory deleted returns posix path separator
1057
+ id : changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator
1058
+ uses : ./
1059
+ with :
1060
+ base_sha : a52f8621d26d5d9f54b80f74bda2d9eedff94693
1061
+ sha : cd1e384723e4d1a184568182ac2b27c53ebf017f
1062
+ dir_names : true
1063
+ dir_names_deleted_files_include_only_deleted_dirs : true
1064
+ use_posix_path_separator : true
1065
+ fetch_depth : 60000
1066
+ - name : Show output
1067
+ run : |
1068
+ echo '${{ toJSON(steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs) }}'
1069
+ shell :
1070
+ bash
1071
+ - name : Check deleted_files output on non windows platform
1072
+ if : steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs.deleted_files != 'test/test3' && runner.os != 'Windows'
1073
+ run : |
1074
+ echo "Invalid output: Expected (test/test3) got (${{ steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs.deleted_files }})"
1075
+ exit 1
1076
+ shell :
1077
+ bash
1078
+ - name : Check deleted_files output on windows platform
1079
+ if : " !contains(steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs.deleted_files, 'test/test3') && runner.os == 'Windows'"
1080
+ run : |
1081
+ echo "Invalid output: Expected (test/test3) got (${{ steps.changed-files-dir-names-deleted-files-include-only-deleted-dirs-directory-posix-path-separator.outputs.deleted_files }})"
1082
+ exit 1
1083
+ shell :
1084
+ bash
1052
1085
1053
1086
test-since-last-remote-commit :
1054
1087
name : Test changed-files since last remote commit
0 commit comments