File tree 13 files changed +88
-100
lines changed
13 files changed +88
-100
lines changed Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/scheduler.yaml'
23
23
- ' .github/workflows/test.yaml'
24
24
pull_request :
25
- paths :
26
- - ' scheduler/**'
27
- - ' .github/workflows/scheduler.yaml'
28
- - ' .github/workflows/test.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' scheduler/**'
33
32
- ' .github/workflows/scheduler.yaml'
34
33
- ' .github/workflows/test.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/secret-manager.yaml'
23
23
- ' .github/workflows/test.yaml'
24
24
pull_request :
25
- paths :
26
- - ' secret-manager/**'
27
- - ' .github/workflows/secret-manager.yaml'
28
- - ' .github/workflows/test.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' secret-manager/**'
33
32
- ' .github/workflows/secret-manager.yaml'
34
33
- ' .github/workflows/test.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 22
22
- ' security-center/snippets/package.json'
23
23
- ' .github/workflows/security-center-snippets.yaml'
24
24
pull_request :
25
- paths :
26
- - ' security-center/snippets/v1/**'
27
- - ' security-center/snippets/package.json'
28
- - ' .github/workflows/security-center-snippets.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' security-center/snippets/v1/**'
33
32
- ' security-center/snippets/package.json'
34
33
- ' .github/workflows/security-center-snippets.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/service-directory-snippets.yaml'
23
23
- ' .github/workflows/test.yaml'
24
24
pull_request :
25
- paths :
26
- - ' service-directory/snippets/**'
27
- - ' .github/workflows/service-directory-snippets.yaml'
28
- - ' .github/workflows/test.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' service-directory/snippets/**'
33
32
- ' .github/workflows/service-directory-snippets.yaml'
34
33
- ' .github/workflows/test.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/speech.yaml'
23
23
- ' .github/workflows/test.yaml'
24
24
pull_request :
25
- paths :
26
- - ' speech/**'
27
- - ' .github/workflows/speech.yaml'
28
- - ' .github/workflows/test.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' speech/**'
33
32
- ' .github/workflows/speech.yaml'
34
33
- ' .github/workflows/test.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 21
21
- ' storagetransfer/**'
22
22
- ' .github/workflows/storagetransfer.yaml'
23
23
pull_request :
24
- paths :
25
- - ' storagetransfer/** '
26
- - ' .github/workflows/storagetransfer.yaml '
27
- pull_request_target :
28
- types : [ labeled]
24
+ types :
25
+ - opened
26
+ - reopened
27
+ - synchronize
28
+ - labeled
29
29
paths :
30
30
- ' storagetransfer/**'
31
31
- ' .github/workflows/storagetransfer.yaml'
32
32
schedule :
33
- - cron : ' 0 0 * * 0'
33
+ - cron : ' 0 0 * * 0'
34
34
jobs :
35
35
test :
36
36
permissions :
@@ -64,14 +64,13 @@ jobs:
64
64
- name : Get npm cache directory
65
65
id : npm-cache-dir
66
66
shell : bash
67
- run : echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
67
+ run : echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
68
68
- uses : actions/cache@v3
69
69
id : npm-cache
70
70
with :
71
71
path : ${{ steps.npm-cache-dir.outputs.dir }}
72
72
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
73
- restore-keys : |
74
- ${{ runner.os }}-node-
73
+ restore-keys : " ${{ runner.os }}-node- \n "
75
74
- name : install repo dependencies
76
75
run : npm install
77
76
working-directory : .
86
85
echo "MOCHA_REPORTER=xunit" >> $GITHUB_ENV
87
86
- run : npm test
88
87
env :
89
- AWS_ACCESS_KEY_ID : ${{ fromJSON(steps.secrets.outputs.sts_aws_secret).AccessKeyId }}
88
+ AWS_ACCESS_KEY_ID : ${{ fromJSON(steps.secrets.outputs.sts_aws_secret).AccessKeyId }}
90
89
AWS_SECRET_ACCESS_KEY : ${{ fromJSON(steps.secrets.outputs.sts_aws_secret).SecretAccessKey }}
91
90
AZURE_STORAGE_ACCOUNT : ${{ fromJSON(steps.secrets.outputs.sts_azure_secret).StorageAccount }}
92
91
AZURE_CONNECTION_STRING : ${{ fromJSON(steps.secrets.outputs.sts_azure_secret).ConnectionString }}
99
98
with :
100
99
name : test-results
101
100
path : storagetransfer/${{ env.MOCHA_REPORTER_OUTPUT }}
102
- retention-days : 1
101
+ retention-days : 1
103
102
flakybot :
104
103
permissions :
105
104
contents : ' read'
Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/talent.yaml'
23
23
- ' .github/workflows/test.yaml'
24
24
pull_request :
25
- paths :
26
- - ' talent/**'
27
- - ' .github/workflows/talent.yaml'
28
- - ' .github/workflows/test.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' talent/**'
33
32
- ' .github/workflows/talent.yaml'
34
33
- ' .github/workflows/test.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/texttospeech.yaml'
23
23
- ' .github/workflows/test.yaml'
24
24
pull_request :
25
- paths :
26
- - ' texttospeech/**'
27
- - ' .github/workflows/texttospeech.yaml'
28
- - ' .github/workflows/test.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' texttospeech/**'
33
32
- ' .github/workflows/texttospeech.yaml'
34
33
- ' .github/workflows/test.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/translate.yaml'
23
23
- ' .github/workflows/test.yaml'
24
24
pull_request :
25
- paths :
26
- - ' translate/**'
27
- - ' .github/workflows/translate.yaml'
28
- - ' .github/workflows/test.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' translate/**'
33
32
- ' .github/workflows/translate.yaml'
34
33
- ' .github/workflows/test.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/video-intelligence.yaml'
23
23
- ' .github/workflows/test.yaml'
24
24
pull_request :
25
- paths :
26
- - ' video-intelligence/**'
27
- - ' .github/workflows/video-intelligence.yaml'
28
- - ' .github/workflows/test.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' video-intelligence/**'
33
32
- ' .github/workflows/video-intelligence.yaml'
34
33
- ' .github/workflows/test.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 22
22
- ' .github/workflows/vision-productSearch.yaml'
23
23
- ' .github/workflows/test.yaml'
24
24
pull_request :
25
- paths :
26
- - ' vision/productSearch/**'
27
- - ' .github/workflows/vision-productSearch.yaml'
28
- - ' .github/workflows/test.yaml'
29
- pull_request_target :
30
- types : [labeled]
25
+ types :
26
+ - opened
27
+ - reopened
28
+ - synchronize
29
+ - labeled
31
30
paths :
32
31
- ' vision/productSearch/**'
33
32
- ' .github/workflows/vision-productSearch.yaml'
34
33
- ' .github/workflows/test.yaml'
35
34
schedule :
36
- - cron : ' 0 0 * * 0'
35
+ - cron : ' 0 0 * * 0'
37
36
jobs :
38
37
test :
39
38
permissions :
Original file line number Diff line number Diff line change 21
21
- ' vision/**'
22
22
- ' .github/workflows/vision.yaml'
23
23
pull_request :
24
- paths :
25
- - ' vision/** '
26
- - ' .github/workflows/vision.yaml '
27
- pull_request_target :
28
- types : [ labeled]
24
+ types :
25
+ - opened
26
+ - reopened
27
+ - synchronize
28
+ - labeled
29
29
paths :
30
30
- ' vision/**'
31
31
- ' .github/workflows/vision.yaml'
32
32
schedule :
33
- - cron : ' 0 0 * * 0'
33
+ - cron : ' 0 0 * * 0'
34
34
jobs :
35
35
test :
36
36
permissions :
@@ -63,14 +63,13 @@ jobs:
63
63
- name : Get npm cache directory
64
64
id : npm-cache-dir
65
65
shell : bash
66
- run : echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
66
+ run : echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
67
67
- uses : actions/cache@v3
68
68
id : npm-cache
69
69
with :
70
70
path : ${{ steps.npm-cache-dir.outputs.dir }}
71
71
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
72
- restore-keys : |
73
- ${{ runner.os }}-node-
72
+ restore-keys : " ${{ runner.os }}-node- \n "
74
73
- name : install repo dependencies
75
74
run : npm install
76
75
working-directory : .
85
84
echo "MOCHA_REPORTER=xunit" >> $GITHUB_ENV
86
85
- run : npm test
87
86
env :
88
- REDIS_HOST : ${{ steps.secrets.outputs.vision.REDIS_HOST }}
87
+ REDIS_HOST : ${{ steps.secrets.outputs.vision.REDIS_HOST }}
89
88
- name : upload test results for FlakyBot workflow
90
89
if : github.event.action == 'schedule' && always()
91
90
uses : actions/upload-artifact@v3
94
93
with :
95
94
name : test-results
96
95
path : vision/${{ env.MOCHA_REPORTER_OUTPUT }}
97
- retention-days : 1
96
+ retention-days : 1
98
97
flakybot :
99
98
permissions :
100
99
contents : ' read'
You can’t perform that action at this time.
0 commit comments