-
-
Notifications
You must be signed in to change notification settings - Fork 535
58 lines (47 loc) · 1.47 KB
/
stripe_js.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
55
56
57
58
name: stripe_js
on:
push:
branches: [master]
paths-ignore:
- "docs/**"
- "website/**"
- "**.md"
pull_request:
branches: ['**']
paths-ignore:
- "docs/**"
- "website/**"
- "**.md"
jobs:
build:
defaults:
run:
working-directory: packages/stripe_js
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v3
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
- name: 📦 Install Dependencies
run: dart pub get
- name: "Set env keys"
env:
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }}
run: |
cd ../../
./.github/workflows/scripts/env-files.sh
- name: ✨ Check Formatting
run: dart format --set-exit-if-changed .
- name: 🕵️ Analyze
run: dart analyze --fatal-infos --fatal-warnings lib test
- name: 🧪 Run Tests
run: |
dart pub global activate coverage
dart test -j 4 --coverage=coverage --platform=chrome && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib
- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: packages/stripe_js/coverage/lcov.info
exclude: "lib/**/*.g.dart lib/**/*.freezed.dart"
min_coverage: 0