-
-
Notifications
You must be signed in to change notification settings - Fork 246
58 lines (54 loc) · 1.25 KB
/
e2e_dart.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
58
name: e2e-sentry-dart
on:
push:
branches:
- main
- release/**
pull_request:
paths-ignore:
- "**/*.md"
- "logging/**"
- "dio/**"
- "flutter/**"
- "file/**"
- "sqflite/**"
- "hive/**"
- "drift/**"
- "isar/**"
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DIST: 1
jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # [email protected]
with:
access_token: ${{ github.token }}
build:
name: E2E
runs-on: "ubuntu-latest"
timeout-minutes: 30
defaults:
run:
working-directory: ./e2e_test
strategy:
fail-fast: false
matrix:
sdk: [stable, beta]
steps:
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d # pin@v1
with:
sdk: ${{ matrix.sdk }}
- uses: actions/checkout@v4
- name: Run
if: env.SENTRY_AUTH_TOKEN != null
run: |
dart pub get
dart run --define=SENTRY_ENVIRONMENT=e2e
analyze:
uses: ./.github/workflows/analyze.yml
with:
package: e2e_test
panaThreshold: 0