Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszpolanski committed Dec 1, 2023
1 parent a97f42d commit 7629cd1
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,31 @@ on:
workflow_dispatch:

jobs:
check:
check-format:
name: Check format using dart format.
runs-on: ubuntu-latest

steps:
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.ORG_SSH_KEY }}
- uses: dart-lang/[email protected]
- uses: actions/checkout@v2

- name: Checkout code
uses: actions/checkout@v2
- name: Flutter Action
uses: subosito/flutter-action@v2
- name: Check format
run: flutter format -n --set-exit-if-changed .
run: dart format . --set-exit-if-changed

lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Flutter Action
uses: subosito/flutter-action@v2
- name: Install Package Dependencies
run: flutter packages get
- name: Get dependencies for example
run: flutter pub get
working-directory: example
- name: Lint using flutter analyze
run: flutter analyze
run: flutter analyze .

0 comments on commit 7629cd1

Please sign in to comment.