You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
flutter-unused-files
v1.0.4
Check for unused files and assets in a Flutter project
It will take the asset and/or file name and search all the files to see if it is referenced. If it is not, it is seen as an unused asset or file.
path
- Optional - Relative path to the Flutter app/package that needs to checked for unused assets or files. It will expect alib
folder to be present at the path e.g.path: packages/my-package
. Default:.
warning
- Optional - Instead of exiting with an error, just list the unused assets/files as a warning. Default:false
assets
- Optional - Whether the assets checks should be ignored. Needs to be considered if app has displays the asset based off of a API response. Default:false
- Update this README with the details of this action
- Update inputs/outputs in
action.yaml
- Implement the action's logic in
src/main.rs
- Trigger a release in GitHub Actions
- Edit the triggered release to set release notes and publish the action to GitHub Marketplace
name: Check for unused files
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
check_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ZimboPro/[email protected]
name: Check for unused files
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
check_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ZimboPro/[email protected]
with:
assets: true
name: Check for unused files
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
check_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ZimboPro/[email protected]
with:
path: packages/my-package
name: Check for unused files
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
check_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ZimboPro/[email protected]
with:
warning: true