Skip to content

Commit

Permalink
chore: fix pana
Browse files Browse the repository at this point in the history
  • Loading branch information
xsahil03x committed Dec 20, 2024
1 parent 480cebb commit 489ec2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/pana/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ inputs:
required: false
type: string
default: "."
githubToken:
required: true
type: string

runs:
using: "composite"
Expand Down Expand Up @@ -48,10 +51,9 @@ runs:
cache: true

- uses: axel-op/dart-package-analyzer@56afb7e6737bd2b7cee05382ae7f0e8111138080 # pin@v3
shell: bash
id: analysis
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
githubToken: ${{ inputs.githubToken }}
relativePath: ${{ inputs.working_directory }}
- name: Check scores
env:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: 📊 Verify Pana Score
uses: ./.github/actions/pana
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
working_directory: packages/stream_chat
min_score: 120

Expand All @@ -36,6 +37,7 @@ jobs:
- name: 📊 Verify Pana Score
uses: ./.github/actions/pana
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
working_directory: packages/stream_chat_persistence
min_score: 120

Expand All @@ -47,6 +49,7 @@ jobs:
- name: 📊 Verify Pana Score
uses: ./.github/actions/pana
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
working_directory: packages/stream_chat_flutter_core
min_score: 120

Expand All @@ -58,6 +61,7 @@ jobs:
- name: 📊 Verify Pana Score
uses: ./.github/actions/pana
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
working_directory: packages/stream_chat_flutter
min_score: 120

Expand All @@ -69,5 +73,6 @@ jobs:
- name: 📊 Verify Pana Score
uses: ./.github/actions/pana
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
working_directory: packages/stream_chat_localizations
min_score: 120

0 comments on commit 489ec2c

Please sign in to comment.