Skip to content

Commit

Permalink
check: format dart code
Browse files Browse the repository at this point in the history
  • Loading branch information
gopi2401 committed Oct 1, 2024
1 parent b89e0f1 commit 9d5b0e8
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d5b0e8

Please sign in to comment.