Skip to content

Commit

Permalink
try the upload side
Browse files Browse the repository at this point in the history
  • Loading branch information
divagant-martian committed Jul 11, 2024
1 parent 3e0c9cc commit 5ed1ba6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,23 @@ jobs:
cargo nextest list --workspace ${{ env.FEATURES }} --lib --bins --tests --run-ignored ignored-only
- name: run tests
continue-on-error: true
run: |
mkdir -p outputs
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --run-ignored ${{ inputs.flaky && 'all' || 'default' }} --no-fail-fast --message-format ${{ inputs.flaky && 'libtest-json' || 'human' }} | jq --slurp '.[] | select(.type == "test" and .event == "failed" ) | .name'
cargo nextest run --workspace ${{ env.FEATURES }} --lib --bins --tests --run-ignored ${{ inputs.flaky && 'all' || 'default' }} --no-fail-fast --message-format ${{ inputs.flaky && 'libtest-json' || 'human' }} > outputs/${{ env.outputName }}
env:
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
outputName: ${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
NEXTEST_EXPERIMENTAL_LIBTEST_JSON: 1


- name: Upload results
uses: actions/upload-artifact@v4
with:
name: outputs/${{ matrix.name }}_${{ matrix.features }}_${{ matrix.rust }}.json
path: outputs
retention-days: 1

- name: doctests
if: ${{ (! inputs.flaky) && matrix.features == 'all' }}
run: |
Expand Down

0 comments on commit 5ed1ba6

Please sign in to comment.