takenagain is validating code guidelines π #27
This file contains 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
# Rule for running static analysis and code formatting checks on all PRs | |
# Runs static analysis and code formatting checks on all PRs to ensure the codebase is clean and consistent | |
name: Validate Code Guidelines | |
run-name: ${{ github.actor }} is validating code guidelines π | |
on: | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
validate_code_guidelines: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup GH Actions | |
uses: actions/checkout@v4 | |
- name: Install Flutter and dependencies | |
uses: ./.github/actions/flutter-deps | |
- name: Fetch packages and generate assets | |
uses: ./.github/actions/generate-assets | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Validate dart code | |
run: | | |
flutter analyze | |
# Currently skipped due to many changes. Will be enabled in the future after doing full sweep of the codebase | |
# dart format --set-exit-if-changed . |