mirror of
https://github.com/jmcorgan/fips.git
synced 2026-07-22 07:48:26 +00:00
ci: expand integration matrix, add nextest JUnit reporting, workflow_dispatch
This commit is contained in:
2
.config/nextest.toml
Normal file
2
.config/nextest.toml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[profile.ci]
|
||||||
|
junit = { path = "junit.xml" }
|
||||||
64
.github/workflows/ci.yml
vendored
64
.github/workflows/ci.yml
vendored
@@ -4,6 +4,16 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: ["**"]
|
branches: ["**"]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
skip_integration:
|
||||||
|
description: "Skip integration tests"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
checks: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@@ -68,7 +78,6 @@ jobs:
|
|||||||
name: Unit tests
|
name: Unit tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -86,8 +95,28 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-
|
${{ runner.os }}-cargo-
|
||||||
|
|
||||||
|
- name: Install cargo-nextest
|
||||||
|
uses: taiki-e/install-action@nextest
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: cargo test --all
|
run: cargo nextest run --all --profile ci
|
||||||
|
|
||||||
|
- name: Publish test report (Checks tab)
|
||||||
|
uses: dorny/test-reporter@v2
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: Unit Tests
|
||||||
|
path: target/nextest/ci/junit.xml
|
||||||
|
reporter: java-junit
|
||||||
|
fail-on-error: false
|
||||||
|
|
||||||
|
- name: Publish test report (run summary)
|
||||||
|
uses: mikepenz/action-junit-report@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
report_paths: target/nextest/ci/junit.xml
|
||||||
|
check_name: Unit Tests Summary
|
||||||
|
fail_on_failure: false
|
||||||
|
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
# Job 3 – Integration tests (static mesh + chaos simulation)
|
# Job 3 – Integration tests (static mesh + chaos simulation)
|
||||||
@@ -102,6 +131,7 @@ jobs:
|
|||||||
name: Integration (${{ matrix.suite }})
|
name: Integration (${{ matrix.suite }})
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build, test]
|
needs: [build, test]
|
||||||
|
if: ${{ !inputs.skip_integration }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -118,6 +148,36 @@ jobs:
|
|||||||
- suite: chaos-smoke-10
|
- suite: chaos-smoke-10
|
||||||
type: chaos
|
type: chaos
|
||||||
scenario: smoke-10
|
scenario: smoke-10
|
||||||
|
- suite: chaos-10
|
||||||
|
type: chaos
|
||||||
|
scenario: chaos-10
|
||||||
|
- suite: ethernet-mesh
|
||||||
|
type: chaos
|
||||||
|
scenario: ethernet-mesh
|
||||||
|
- suite: ethernet-only
|
||||||
|
type: chaos
|
||||||
|
scenario: ethernet-only
|
||||||
|
- suite: bottleneck-parent
|
||||||
|
type: chaos
|
||||||
|
scenario: bottleneck-parent
|
||||||
|
- suite: cost-avoidance
|
||||||
|
type: chaos
|
||||||
|
scenario: cost-avoidance
|
||||||
|
- suite: cost-mixed-7node
|
||||||
|
type: chaos
|
||||||
|
scenario: cost-mixed-7node
|
||||||
|
- suite: cost-reeval
|
||||||
|
type: chaos
|
||||||
|
scenario: cost-reeval
|
||||||
|
- suite: cost-stability
|
||||||
|
type: chaos
|
||||||
|
scenario: cost-stability
|
||||||
|
- suite: depth-vs-cost
|
||||||
|
type: chaos
|
||||||
|
scenario: depth-vs-cost
|
||||||
|
- suite: mixed-technology
|
||||||
|
type: chaos
|
||||||
|
scenario: mixed-technology
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user