From 9d5b0e80e828b93bc6754a59176a9cd159418a3a Mon Sep 17 00:00:00 2001 From: gopi2401 Date: Tue, 1 Oct 2024 09:49:54 +0530 Subject: [PATCH] check: format dart code --- .github/workflows/codeql.yml | 46 ++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 49ed596..8f95315 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -29,29 +29,29 @@ jobs: - name: Analyze package run: melos exec -- flutter analyze --no-fatal-infos --no-fatal-warnings - # format: - # name: Format Dart Code - # runs-on: ubuntu-latest - # timeout-minutes: 5 - # steps: - # - uses: actions/checkout@v4 - # - uses: subosito/flutter-action@v2 - # with: - # channel: stable - # - run: flutter --version - # - uses: bluefireteam/melos-action@v3 - # - name: Activate melos - # run: | - # echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH - # dart pub global activate melos 2.9.0 - # - name: Bootstrap melos - # run: melos bs - # - name: Make validate-formatting script executable - # run: chmod +x ./.github/workflows/scripts/validate-formatting.sh - # - name: Validate formatting - # run: | - # melos exec -- dart format -o write . - # ./.github/workflows/scripts/validate-formatting.sh + format: + name: Format Dart Code + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: stable + - run: flutter --version + - uses: bluefireteam/melos-action@v3 + - name: Activate melos + run: | + echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH + dart pub global activate melos 2.9.0 + - name: Bootstrap melos + run: melos bs + - name: Make validate-formatting script executable + run: chmod +x ./.github/workflows/scripts/validate-formatting.sh + - name: Validate formatting + run: | + melos exec -- dart format -o write . + ./.github/workflows/scripts/validate-formatting.sh # test: # name: Test Dart Code