Skip to content

Commit 0e0894d

Browse files
committed
ensure targets are used
1 parent 9f7e711 commit 0e0894d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,24 +111,24 @@ jobs:
111111
else
112112
targets="--lib --bins"
113113
fi
114-
echo cargo check -p $i $FEATURES $targets
115-
cargo check -p $i $FEATURES $targets
114+
echo cargo check -p $i $FEATURES $targets --target ${{ matrix.cargo_targets }}
115+
cargo check -p $i $FEATURES $targets --target ${{ matrix.cargo_targets }}
116116
done
117117
env:
118118
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
119119

120120
- name: build tests
121121
run: |
122-
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --no-run
122+
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --no-run --target ${{ matrix.cargo_targets }}
123123
124124
- name: list ignored tests
125125
run: |
126-
cargo nextest list --workspace ${{ env.FEATURES }} --lib --bins --tests --run-ignored ignored-only
126+
cargo nextest list --workspace ${{ env.FEATURES }} --lib --bins --tests --run-ignored ignored-only --target ${{ matrix.cargo_targets }}
127127
128128
- name: run tests
129129
run: |
130130
mkdir -p output
131-
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --profile ci --run-ignored ${{ inputs.flaky && 'all' || 'default' }} --no-fail-fast --message-format ${{ inputs.flaky && 'libtest-json' || 'human' }} > output/${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
131+
cargo nextest run --workspace ${{ env.FEATURES }} --target ${{ matrix.cargo_targets }} --lib --bins --tests --profile ci --run-ignored ${{ inputs.flaky && 'all' || 'default' }} --no-fail-fast --message-format ${{ inputs.flaky && 'libtest-json' || 'human' }} > output/${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
132132
env:
133133
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
134134
NEXTEST_EXPERIMENTAL_LIBTEST_JSON: 1

0 commit comments

Comments
 (0)