-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (38 loc) · 1.06 KB
/
analyze-and-test.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
name: Analyze and test all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-analyze-and-test
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"
jobs:
semantic_pull_request:
# Semantic Pull Request https://workflows.vgv.dev/docs/workflows/semantic_pull_request
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/get-flutter
- name: run dart format check
run: dart format --set-exit-if-changed .
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/get-flutter
- name: analyze
run: flutter analyze
tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/get-flutter
- name: run flutter tests
run: flutter test