Skip to content

Commit 1e90baa

Browse files
committed
run tests in first job
1 parent 506d467 commit 1e90baa

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,14 @@ jobs:
7777
run: |
7878
cargo install cargo2junit 2>/dev/null || true # Suppress the "binary `xyz` already exists in destination" error
7979
cargo install cargo-sort 2>/dev/null || true
80-
81-
# - name: Cargo build
80+
81+
- name: Run tests
82+
shell: bash
83+
run: |
84+
set -o pipefail && cargo test --release -p $CARGO_PROJECT_NAME -- -Z unstable-options --format json --report-time | tee >(cargo2junit > test-results-${{ env.ARTIFACTS_PATTERN }}.xml)
85+
86+
87+
# - name: Cargo build
8288
# uses: actions-rs/cargo@v1
8389
# with:
8490
# command: build
@@ -106,13 +112,6 @@ jobs:
106112
# - name: Cargo sort
107113
# run: |
108114
# cargo sort -c ${{ matrix.project }}/Cargo.toml
109-
110-
- name: Run tests
111-
if: ${{ matrix.skip_tests != true }}
112-
shell: bash
113-
run: |
114-
set -o pipefail && cargo test --release -p $CARGO_PROJECT_NAME -- -Z unstable-options --format json --report-time | tee >(cargo2junit > test-results-${{ env.ARTIFACTS_PATTERN }}.xml)
115-
116115
# - name: Upload Tests Results
117116
# if: ${{ always() && matrix.skip_tests != true }}
118117
# uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)