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>
75 lines
2.2 KiB
YAML
75 lines
2.2 KiB
YAML
# Generated by shorebird_ci --style static. Safe to edit.
|
|
# Reusable workflow: CI steps for a single Flutter package.
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
package_name:
|
|
required: true
|
|
type: string
|
|
package_path:
|
|
required: true
|
|
type: string
|
|
flutter_version:
|
|
required: false
|
|
default: ""
|
|
type: string
|
|
has_bloc_lint:
|
|
required: false
|
|
default: false
|
|
type: boolean
|
|
has_integration_tests:
|
|
required: false
|
|
default: false
|
|
type: boolean
|
|
has_unit_tests:
|
|
required: false
|
|
default: true
|
|
type: boolean
|
|
subpackages:
|
|
required: false
|
|
default: ""
|
|
type: string
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
submodules: recursive
|
|
- name: Setup Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
flutter-version: ${{ inputs.flutter_version || '' }}
|
|
channel: ${{ inputs.flutter_version && '' || 'stable' }}
|
|
- name: Setup Bloc Tools
|
|
if: inputs.has_bloc_lint
|
|
uses: felangel/setup-bloc-tools@v0
|
|
- name: Install Dependencies
|
|
working-directory: ${{ inputs.package_path }}
|
|
run: |
|
|
flutter pub get --no-example
|
|
for sub in ${{ inputs.subpackages }}; do
|
|
flutter pub get --no-example -C $sub
|
|
done
|
|
- working-directory: ${{ inputs.package_path }}
|
|
run: dart format --set-exit-if-changed .
|
|
- working-directory: ${{ inputs.package_path }}
|
|
run: flutter analyze .
|
|
- name: Bloc Lint
|
|
if: inputs.has_bloc_lint
|
|
working-directory: ${{ inputs.package_path }}
|
|
run: bloc lint .
|
|
- if: inputs.has_unit_tests
|
|
working-directory: ${{ inputs.package_path }}
|
|
run: flutter test --coverage
|
|
- if: inputs.has_unit_tests
|
|
uses: codecov/codecov-action@v7
|
|
with:
|
|
flags: ${{ inputs.package_name }}
|
|
working-directory: ${{ inputs.package_path }}
|
|
- name: Integration Tests
|
|
if: inputs.has_integration_tests
|
|
working-directory: ${{ inputs.package_path }}
|
|
run: flutter test integration_test
|