-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (47 loc) · 1.26 KB
/
leancode_lint-test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: leancode_lint test
on:
push:
branches: [master]
tags-ignore: ['leancode_lint-v*']
paths:
- 'packages/leancode_lint/**'
pull_request:
branches: [master]
paths:
- 'packages/leancode_lint/**'
jobs:
test:
name: Flutter ${{ matrix.channel }}${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- version: 3.24.x
defaults:
run:
working-directory: packages/leancode_lint
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
channel: ${{ matrix.channel }}
flutter-version: ${{ matrix.version }}
- name: Flutter version
run: flutter --version
- name: Cache pub dependencies
uses: actions/cache@v2
with:
path: ${{ env.FLUTTER_HOME }}/.pub-cache
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: ${{ runner.os }}-pub-
- name: Run lint rules tests
run: |
cd test/lints_test_app/
flutter pub get
dart run custom_lint
- uses: codecov/codecov-action@v1
with:
flags: leancode_lint