Skip to content

Commit cc4eb56

Browse files
committed
add continue on error for CI and improve for loop script
1 parent 519611c commit cc4eb56

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/bench-test.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
5959
- name: count for loops
6060
working-directory: ./${{ matrix.project }}
61+
continue-on-error: true
6162
shell: bash
6263
run: |
6364
while read -r file; do
@@ -66,12 +67,11 @@ jobs:
6667
echo "Count in file: $for_loop_count_in_file"
6768
((for_loop_count += for_loop_count_in_file))
6869
done < <(find . -type f -name '*.rs')
69-
70-
# Print results
7170
echo "for loop occurrences: $for_loop_count"
7271
7372
- name: count iterator methods
7473
working-directory: ./${{ matrix.project }}
74+
continue-on-error: true
7575
shell: bash
7676
run: |
7777
# Initialize counters
@@ -114,6 +114,7 @@ jobs:
114114

115115
- name: count for loops after tool
116116
working-directory: ./${{ matrix.project }}
117+
continue-on-error: true
117118
shell: bash
118119
run: |
119120
while read -r file; do
@@ -122,12 +123,11 @@ jobs:
122123
echo "Count in file: $for_loop_count_in_file"
123124
((for_loop_count += for_loop_count_in_file))
124125
done < <(find . -type f -name '*.rs')
125-
126-
# Print results
127126
echo "for loop occurrences: $for_loop_count"
128127
129128
- name: count iterator methods after tool
130129
working-directory: ./${{ matrix.project }}
130+
continue-on-error: true
131131
shell: bash
132132
run: |
133133
# Initialize counters
@@ -156,6 +156,7 @@ jobs:
156156
157157
- name: par iter count
158158
working-directory: ./${{ matrix.project }}
159+
continue-on-error: true
159160
shell: bash
160161
run: |
161162
# Initialize counters

0 commit comments

Comments
 (0)