Skip to content

Commit

Permalink
fix something
Browse files Browse the repository at this point in the history
  • Loading branch information
gopi2401 committed Sep 25, 2024
1 parent 4765d62 commit 4ee473d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Code QL

on:
push:
branches: [ "main" ]
branches: ["main"]

jobs:
analyze:
Expand All @@ -16,45 +16,45 @@ jobs:
- name: Activate melos
run: |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
dart pub global activate melos
dart pub global activate melos
- name: Bootstrap melos
run: melos bs
- name: Analyze package
run: melos exec -- flutter analyze --no-fatal-infos

# format:
# name: Format Dart Code
# runs-on: ubuntu-latest
# timeout-minutes: 5
# steps:
# - uses: actions/checkout@v3
# - uses: subosito/flutter-action@v2
# with:
# channel: beta
# - 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: 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@v3
- uses: subosito/flutter-action@v2
with:
channel: beta
- 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: Validate formatting
run: |
melos exec -- dart format -o write .
./.github/workflows/scripts/validate-formatting.sh
# test:
# name: Test Dart Code
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: subosito/flutter-action@v2
# with:
# channel: beta
# - 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: Run tests
# run: melos exec --dir-exists=test -- flutter test
test:
name: Test Dart Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: beta
- 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: Run tests
run: melos exec --dir-exists=test -- flutter test
2 changes: 1 addition & 1 deletion melos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: insta

# Define the packages to include in the workspace
packages:
- packages/**
- .

# Command configuration section
command:
Expand Down

0 comments on commit 4ee473d

Please sign in to comment.