-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9a5065
commit 6dd8f5d
Showing
1 changed file
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,16 +13,24 @@ jobs: | |
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
# Each feature flag combination. GitHub will run these in parallel because magic. | ||
features: | ||
- "" | ||
- "async_mode" | ||
- "use_dependencies" | ||
- "async_mode use_dependencies" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup protoc | ||
uses: arduino/[email protected] | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Test | ||
run: cargo test --verbose | ||
- name: Test async mode | ||
run: cargo test --features async_mode --verbose | ||
- name: Test with third-party libs | ||
run: cargo test --features use_dependencies --verbose | ||
- name: Run tests | ||
run: | | ||
if [ -z "${{ matrix.features }}" ]; then | ||
cargo test --verbose | ||
else | ||
cargo test --verbose --features "${{ matrix.features }}" | ||
fi |