83df31b60e
Bumps the gh-deps group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [codecov/codecov-action](https://github.com/codecov/codecov-action). Bumps the gh-deps group with 1 update in the /.github/actions/dart_package directory: [codecov/codecov-action](https://github.com/codecov/codecov-action). Bumps the gh-deps group with 1 update in the /.github/actions/flutter_package directory: [codecov/codecov-action](https://github.com/codecov/codecov-action). Bumps the gh-deps group with 1 update in the /.github/actions/publish_flutter_package directory: [actions/checkout](https://github.com/actions/checkout). Bumps the gh-deps group with 1 update in the /.github/actions/rust_crate directory: [codecov/codecov-action](https://github.com/codecov/codecov-action). Updates `actions/checkout` from 6 to 7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) Updates `codecov/codecov-action` from 6 to 7 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v6...v7) Updates `codecov/codecov-action` from 6 to 7 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v6...v7) Updates `codecov/codecov-action` from 6 to 7 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v6...v7) Updates `actions/checkout` from 6 to 7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) Updates `codecov/codecov-action` from 6 to 7 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: codecov/codecov-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: codecov/codecov-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: codecov/codecov-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps - dependency-name: codecov/codecov-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-deps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
name: Rust Crate Workflow
|
|
description: Build and test your Rust crate
|
|
|
|
inputs:
|
|
codecov_token:
|
|
required: true
|
|
description: The codecov token used to upload coverage reports.
|
|
working_directory:
|
|
required: false
|
|
default: "."
|
|
description: The working directory for this workflow.
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install cargo-llvm-cov
|
|
uses: taiki-e/install-action@cargo-llvm-cov
|
|
|
|
- name: Check Formatting
|
|
working-directory: ${{ inputs.working_directory }}
|
|
shell: bash
|
|
run: cargo fmt --check
|
|
|
|
# No explicit build step needed — clippy already compiles all targets.
|
|
- name: Clippy
|
|
working-directory: ${{ inputs.working_directory }}
|
|
shell: bash
|
|
run: cargo clippy --all-targets -- -D warnings
|
|
|
|
- name: Test
|
|
working-directory: ${{ inputs.working_directory }}
|
|
shell: bash
|
|
run: cargo llvm-cov --lcov --output-path lcov.info
|
|
|
|
# Per https://stackoverflow.com/questions/73402042/github-action-expressions-split-string
|
|
- name: Split package name
|
|
env:
|
|
PACKAGE_PATH: ${{ inputs.working_directory}}
|
|
id: split
|
|
shell: bash
|
|
run: echo "package_name=${PACKAGE_PATH##*/}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Upload Coverage
|
|
uses: codecov/codecov-action@v7
|
|
with:
|
|
# We use Codecov's carryforward flags to allow our PR testing to only
|
|
# run affected packages, but also allow our coverage information from
|
|
# past runs to "carry forward" on a "per flag" basis. We tag coverage
|
|
# information with "flags" explaining what directory the coverage is from.
|
|
# https://docs.codecov.com/docs/carryforward-flags
|
|
flags: ${{ steps.split.outputs.package_name }}
|
|
token: ${{ inputs.codecov_token }}
|