Skip to content

Commit ef84ee0

Browse files
committed
fix(ci/cd): build but do not execute tests in build integration tests step
1 parent 00fef2c commit ef84ee0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/actions/rust-build/action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ inputs:
77
toolchain:
88
required: true
99
description: "the Rust toolchain to use"
10+
run-tests:
11+
required: true
12+
default: true
13+
description: "whether to run tests in addition to building"
1014

1115
runs:
1216
using: "composite"
@@ -22,5 +26,6 @@ runs:
2226
run: cargo build --all-features --verbose --package ${{ inputs.package }}
2327

2428
- name: Run tests
29+
if: ${{ inputs.run-tests }}
2530
shell: bash
2631
run: cargo test --all-features --verbose --package ${{ inputs.package }}

.github/workflows/build-integration-test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ jobs:
3535
with:
3636
package: lambda-integration-tests
3737
toolchain: ${{ matrix.toolchain}}
38+
# the tests will generally fail in ci since they make a network call to a real endpoint,
39+
# this step is just designed to make sure they build successfully
40+
run-tests: false

0 commit comments

Comments
 (0)