Skip to content

Commit badc271

Browse files
committed
chore(ci): Lefthook: pass push files to test commands
1 parent e2ced95 commit badc271

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lefthook.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ pre-push:
7979
tags: test,links
8080
glob: 'content/**/*.{md,html}'
8181
run: |
82-
echo "Running link checker for: {staged_files}"
83-
yarn test:links {staged_files}
82+
echo "Running link checker for: {push_files}"
83+
yarn test:links {push_files}
8484
exit $?
8585
8686
# Manage Docker containers
@@ -100,39 +100,39 @@ pre-push:
100100
tags: test,codeblocks,v2
101101
env:
102102
SERVICE: cloud-pytest
103-
run: yarn test:codeblocks:cloud '{staged_files}'
103+
run: yarn test:codeblocks:cloud '{push_files}'
104104

105105
cloud-dedicated-pytest:
106106
tags: test,codeblocks,v3
107107
glob: content/influxdb/cloud-dedicated/**/*.md
108108
run: |
109-
yarn test:codeblocks:cloud-dedicated '{staged_files}' &&
109+
yarn test:codeblocks:cloud-dedicated '{push_files}' &&
110110
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
111111
112112
cloud-serverless-pytest:
113113
tags: test,codeblocks,v3
114114
glob: content/influxdb/cloud-serverless/**/*.md
115115
env:
116116
SERVICE: cloud-serverless-pytest
117-
run: yarn test:codeblocks:cloud-serverless '{staged_files}'
117+
run: yarn test:codeblocks:cloud-serverless '{push_files}'
118118

119119
clustered-pytest:
120120
tags: test,codeblocks,v3
121121
glob: content/influxdb/clustered/**/*.md
122122
run: |
123-
yarn test:codeblocks:clustered '{staged_files}' &&
123+
yarn test:codeblocks:clustered '{push_files}' &&
124124
./test/scripts/monitor-tests.sh stop clustered-pytest
125125
126126
telegraf-pytest:
127127
tags: test,codeblocks
128128
glob: content/telegraf/**/*.md
129129
env:
130130
SERVICE: telegraf-pytest
131-
run: yarn test:codeblocks:telegraf '{staged_files}'
131+
run: yarn test:codeblocks:telegraf '{push_files}'
132132

133133
v2-pytest:
134134
tags: test,codeblocks,v2
135135
glob: content/influxdb/v2/**/*.md
136136
env:
137137
SERVICE: v2-pytest
138-
run: yarn test:codeblocks:v2 '{staged_files}'
138+
run: yarn test:codeblocks:v2 '{push_files}'

0 commit comments

Comments
 (0)