-
-
Notifications
You must be signed in to change notification settings - Fork 29
55 lines (49 loc) · 1.29 KB
/
dart_plugin.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
name: "Sentry Dart Plugin"
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: "Analyze, Format and Build"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [stable, beta, dev]
steps:
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- uses: actions/checkout@v2
- name: "Pub Get"
run: |
dart pub get
- name: "Analyze and Format"
run: |
dart analyze --fatal-infos
dart format --set-exit-if-changed ./
- name: Build
run: |
dart compile aot-snapshot bin/sentry_dart_plugin.dart
package-analysis:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: axel-op/dart-package-analyzer@v3
id: analysis
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
# - name: "Check scores"
# env:
# TOTAL: ${{ steps.analysis.outputs.total }}
# TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
# run: |
# PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
# if (( $PERCENTAGE < 100 ))
# then
# echo Score too low!
# exit 1
# fi