chore(deps): bump codecov/codecov-action from 4 to 5 #559
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| jobs: | |
| check: | |
| # Run `cargo check` first to ensure that the pushed code at least compiles. | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: [1.89.0, stable] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Check | |
| run: cargo check --all --bins --tests --benches | |
| test: | |
| needs: check | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: [1.89.0, stable] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - uses: Swatinem/rust-cache@v2 | |
| # Install nextest for faster parallel test execution | |
| - name: Install nextest | |
| uses: taiki-e/install-action@nextest | |
| - name: Run unit tests (nextest) | |
| run: cargo test-unit | |
| - name: Run BDD integration tests | |
| run: cargo test-bdd | |
| - name: Upload unit test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nextest-junit-${{ matrix.rust }} | |
| path: target/nextest/ci/junit.xml | |
| if-no-files-found: ignore | |
| - name: Upload BDD test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cucumber-junit-${{ matrix.rust }} | |
| path: | | |
| target/cucumber-integration-junit.xml | |
| target/cucumber-fsm-junit.xml | |
| if-no-files-found: ignore | |
| - name: Publish unit test report | |
| if: always() | |
| uses: mikepenz/action-junit-report@v4 | |
| with: | |
| report_paths: "target/nextest/ci/junit.xml" | |
| check_name: "Unit Test Report (${{ matrix.rust }})" | |
| fail_on_failure: true | |
| include_passed: true | |
| detailed_summary: true | |
| - name: Publish BDD test report | |
| if: always() | |
| uses: mikepenz/action-junit-report@v4 | |
| with: | |
| report_paths: "target/cucumber-*-junit.xml" | |
| check_name: "BDD Test Report (${{ matrix.rust }})" | |
| fail_on_failure: true | |
| include_passed: true | |
| detailed_summary: true | |
| coverage: | |
| needs: check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Install nextest | |
| uses: taiki-e/install-action@nextest | |
| - name: Generate coverage file | |
| run: cargo cov | |
| - name: Run BDD tests for coverage results | |
| run: cargo test-bdd | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: lcov.info | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/test-results-action@v1 | |
| with: | |
| files: target/cucumber-integration-junit.xml,target/cucumber-fsm-junit.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-features --bins --examples --tests --benches -- -D warnings | |
| fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - name: Format check | |
| run: cargo fmt --all -- --check | |
| doc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Documentation | |
| run: cargo doc --workspace --all-features --no-deps | |
| env: | |
| RUSTDOCFLAGS: -D warnings | |
| spellcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Spellcheck | |
| uses: streetsidesoftware/cspell-action@v6 | |
| with: | |
| files: "**/*.rs **/*.md **/*.toml" | |
| config: cspell.json | |
| inline: warning | |
| suggestions: true |