File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed
actions/restore-artifacts Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 62
62
- name : Unzip clients-javascript artifact
63
63
if : ${{ inputs.javascript == 'true' && inputs.type == 'all' }}
64
64
shell : bash
65
- run : unzip -q -o clients-javascript.zip && rm clients-javascript.zip
65
+ run : |
66
+ rm -rf clients/algoliasearch-client-javascript
67
+ rm -rf tests/output/javascript/src/client || true
68
+ rm -rf tests/output/javascript/src/methods || true
69
+ unzip -q -o clients-javascript.zip && rm clients-javascript.zip
66
70
67
71
# PHP
68
72
- name : Download clients-php artifact
74
78
- name : Unzip clients-php artifact
75
79
if : ${{ inputs.php == 'true' && inputs.type == 'all' }}
76
80
shell : bash
77
- run : unzip -q -o clients-php.zip && rm clients-php.zip
81
+ run : |
82
+ rm -rf clients/algoliasearch-client-php
83
+ rm -rf tests/output/php/src/client || true
84
+ rm -rf tests/output/php/src/methods || true
85
+ unzip -q -o clients-php.zip && rm clients-php.zip
78
86
79
87
# Java
80
88
- name : Download clients-java artifact
86
94
- name : Unzip clients-java artifact
87
95
if : ${{ inputs.java == 'true' && inputs.type == 'all' }}
88
96
shell : bash
89
- run : unzip -q -o clients-java.zip && rm clients-java.zip
97
+ run : |
98
+ rm -rf clients/algoliasearch-client-java-2
99
+ rm -rf tests/output/java/src/test/java/com/algolia/client || true
100
+ rm -rf tests/output/java/src/test/java/com/algolia/methods || true
101
+ unzip -q -o clients-java.zip && rm clients-java.zip
Original file line number Diff line number Diff line change @@ -242,7 +242,9 @@ jobs:
242
242
run : yarn cli cts run ${{ matrix.client.language }}
243
243
244
244
- name : Zip artifact before storing
245
- run : zip -r -y clients-${{ matrix.client.language }}.zip ${{ matrix.client.path }} ${{ matrix.client.testsToStore }} -x "**/node_modules**" "clients/algoliasearch-client-javascript/.yarn**" "**/.github**"
245
+ run :
246
+ zip -r -y clients-${{ matrix.client.language }}.zip ${{ matrix.client.path }} ${{ matrix.client.testsToStore }} -x \
247
+ " **/node_modules**" " clients/algoliasearch-client-javascript/.yarn**" " **/.github**" " **/build/**" " **/dist/**" " **/.gradle/**" " **/bin/**" " **/vendor/**"
246
248
247
249
- name : Store ${{ matrix.client.language }} clients
248
250
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change @@ -38,9 +38,7 @@ async function preCommit() {
38
38
}
39
39
}
40
40
41
- const stagedFiles = (
42
- await run ( 'git diff --name-only --cached --diff-filter=d' )
43
- ) . split ( '\n' ) ;
41
+ const stagedFiles = ( await run ( 'git diff --name-only --cached' ) ) . split ( '\n' ) ;
44
42
45
43
const toUnstage = micromatch . match ( stagedFiles , getPatterns ( ) ) ;
46
44
You can’t perform that action at this time.
0 commit comments