diff --git a/.github/renovate.json b/.github/renovate.json index 19d07a2..8bb6246 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -7,16 +7,8 @@ "matchPackagePatterns": [ "*" ], - "groupName": "all dependencies", - "groupSlug": "all", "automerge": true } ], - "groupName": "all dependencies", - "separateMajorMinor": false, - "groupSlug": "all", - "lockFileMaintenance": { - "enabled": false - }, "dependencyDashboard": true } diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml index 161726c..050e18e 100644 --- a/.github/workflows/test_suite.yml +++ b/.github/workflows/test_suite.yml @@ -1,7 +1,15 @@ 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 }} @@ -9,6 +17,7 @@ concurrency: 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: @@ -16,14 +25,31 @@ jobs: 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: @@ -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: