Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: attempt to capture test results and upload them #86

Merged
merged 6 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,8 @@
"matchPackagePatterns": [
"*"
],
"groupName": "all dependencies",
"groupSlug": "all",
"automerge": true
}
],
"groupName": "all dependencies",
"separateMajorMinor": false,
"groupSlug": "all",
"lockFileMaintenance": {
"enabled": false
},
"dependencyDashboard": true
}
29 changes: 28 additions & 1 deletion .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,55 @@
name: "Test Suite"
on:
push:
branches-ignore:
- 'dependabot/**' #avoid duplicates: only run the PR, not the push
- 'renovate/**' #avoid duplicates: only run the PR, not the push
- 'gh-pages' #github pages do not trigger all tests
tags-ignore:
- 'v*' #avoid rerun existing commit on release
pull_request:
branches:
- 'main'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/') || startsWith(github.head_ref, 'renovate/')))
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: Start minio
run: ./ci/minio_start.sh
- run: cargo test --all-features
- run: cargo test --all-features -- -Z unstable-options --format json --report-time | tee results.json
- name: Prepare junit report
id: cargo_reporter
uses: innoq/action-cargo-test-report@v1
with:
cargo-test-report-json: 'results.json'
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
with:
check_name: Test Report
fail_on_failure: true
require_tests: true
annotate_only: true
summary: ${{ steps.cargo_reporter.outputs.summary }}
- name: Stop minio
run: ./ci/minio_stop.sh

# Check formatting with rustfmt
formatting:
if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/') || startsWith(github.head_ref, 'renovate/')))
name: cargo fmt
runs-on: ubuntu-latest
steps:
Expand All @@ -36,6 +62,7 @@ jobs:
uses: actions-rust-lang/rustfmt@v1

lint:
if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/') || startsWith(github.head_ref, 'renovate/')))
name: cargo clippy
runs-on: ubuntu-latest
steps:
Expand Down
Loading