-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (51 loc) · 1.28 KB
/
omesh_flutter.yaml
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
44
45
46
47
48
49
50
51
52
53
54
name: ci
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
semantic_pull_request:
defaults:
run:
working-directory: "flutter/mesh"
runs-on: ubuntu-latest
steps:
- name: Semantic pull request
if: github.event_name == 'pull_request'
uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
validateSingleCommit: false
ignoreLabels: |
bot
ignore-semantic-pull-request
wip: false
build:
defaults:
run:
working-directory: "flutter/mesh"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- name: formatting
run: dart format --set-exit-if-changed lib test
- name: analyze
run: flutter analyze lib test
- name: test
run: flutter test