Skip to content

Commit ccb4b21

Browse files
authored
Added always() in step conditions to allow steps to run even if previous (#3687)
step failed
1 parent 4606a4d commit ccb4b21

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,23 @@ jobs:
7474
with:
7575
workspaces: "./quickwit -> target"
7676
- name: Install nextest
77-
if: steps.modified.outputs.rust_src == 'true'
77+
if: always() && steps.modified.outputs.rust_src == 'true'
7878
uses: taiki-e/cache-cargo-install-action@v1
7979
with:
8080
tool: cargo-nextest
8181
- name: cargo nextest
82-
if: steps.modified.outputs.rust_src == 'true'
82+
if: always() && steps.modified.outputs.rust_src == 'true'
8383
run: cargo nextest run --features=postgres --retries 1
8484
working-directory: ./quickwit
8585
- name: cargo build
86-
if: steps.modified.outputs.rust_src == 'true'
86+
if: always() && steps.modified.outputs.rust_src == 'true'
8787
run: cargo build --features=postgres --bin quickwit
8888
working-directory: ./quickwit
8989
- name: Install python packages
9090
run: sudo pip3 install pyaml requests
91-
if: steps.modified.outputs.rust_src == 'true'
91+
if: always() && steps.modified.outputs.rust_src == 'true'
9292
- name: run REST API tests
93-
if: steps.modified.outputs.rust_src == 'true'
93+
if: always() && steps.modified.outputs.rust_src == 'true'
9494
run: python3 ./run_tests.py --binary ../target/debug/quickwit
9595
working-directory: ./quickwit/rest-api-tests
9696
lints:
@@ -125,27 +125,27 @@ jobs:
125125
with:
126126
workspaces: "./quickwit -> target"
127127
- name: Install cargo deny
128-
if: steps.modified.outputs.rust_src == 'true'
128+
if: always() && steps.modified.outputs.rust_src == 'true'
129129
uses: taiki-e/cache-cargo-install-action@v1
130130
with:
131131
tool: cargo-deny
132132
- name: cargo clippy
133-
if: steps.modified.outputs.rust_src == 'true'
133+
if: always() && steps.modified.outputs.rust_src == 'true'
134134
run: cargo clippy --workspace --tests --all-features
135135
working-directory: ./quickwit
136136
- name: cargo deny
137-
if: steps.modified.outputs.rust_src == 'true'
137+
if: always() && steps.modified.outputs.rust_src == 'true'
138138
run: cargo deny check licenses
139139
working-directory: ./quickwit
140140
- name: cargo doc
141-
if: steps.modified.outputs.rust_src == 'true'
141+
if: always() && steps.modified.outputs.rust_src == 'true'
142142
run: cargo doc
143143
working-directory: ./quickwit
144144
- name: License headers check
145145
if: always()
146146
run: bash scripts/check_license_headers.sh
147147
working-directory: ./quickwit
148148
- name: rustfmt
149-
if: steps.modified.outputs.rust_src == 'true'
149+
if: always() && steps.modified.outputs.rust_src == 'true'
150150
run: cargo +nightly fmt --all -- --check
151151
working-directory: ./quickwit

0 commit comments

Comments
 (0)