forked from LinusU/flutter_web_auth
-
Notifications
You must be signed in to change notification settings - Fork 55
43 lines (38 loc) · 1.15 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
check-format:
name: Check format using flutter format
runs-on: ubuntu-latest
container: ghcr.io/cirruslabs/flutter:stable
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install melos
run: |
flutter pub global activate melos
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
echo "$HOME/AppData/Local/Pub/Cache/bin" >> $GITHUB_PATH
- name: Initialize workspace
run: melos bootstrap
- name: Check format
run: melos exec -- dart format --output=none --set-exit-if-changed .
lint:
name: Lint
runs-on: ubuntu-latest
container: ghcr.io/cirruslabs/flutter:stable
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install melos
run: |
flutter pub global activate melos
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
echo "$HOME/AppData/Local/Pub/Cache/bin" >> $GITHUB_PATH
- name: Initialize workspace
run: melos bootstrap
- name: Lint using flutter analyze
run: melos exec -- flutter analyze