Skip to content

Commit

Permalink
Add analyze flutter packages job
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Aug 18, 2023
1 parent f765bf2 commit 8509287
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI
on: push

env:
flutter-version: '3.x'

jobs:
analyze:
name: Analyze ${{ matrix.package }} package
runs-on: ubuntu-latest

strategy:
matrix:
package:
- auth0_flutter
- auth0_flutter_platform_interface

steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
channel: stable

- name: Add example/.env
if: ${{ matrix.package == 'auth0_flutter' }}
working-directory: ${{ matrix.package }}
run: cp example/.env.example example/.env

- name: Analize package
working-directory: ${{ matrix.package }}
run: flutter analyze

0 comments on commit 8509287

Please sign in to comment.