-
-
Notifications
You must be signed in to change notification settings - Fork 240
60 lines (53 loc) · 1.48 KB
/
drift.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
59
60
name: sentry-drift
on:
push:
branches:
- main
- release/**
pull_request:
paths:
- '!**/*.md'
- '!**/class-diagram.svg'
- '.github/workflows/drift.yml'
- '.github/workflows/analyze.yml'
- '.github/actions/flutter-test/**'
- '.github/actions/coverage/**'
- 'dart/**'
- 'drift/**'
jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # [email protected]
with:
access_token: ${{ github.token }}
build:
name: '${{ matrix.target }} | ${{ matrix.sdk }}'
runs-on: ${{ matrix.target == 'linux' && 'ubuntu' || matrix.target }}-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
target: [macos, linux, windows]
sdk: [stable, beta]
steps:
- uses: actions/checkout@v4
- name: Install libsqlite3
if: matrix.target == 'linux'
run: sudo apt-get -y install libsqlite3-dev
- uses: ./.github/actions/flutter-test
with:
directory: drift
- uses: ./.github/actions/coverage
if: matrix.target == 'linux' && matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: drift
coverage: sentry_drift
min-coverage: 80
analyze:
uses: ./.github/workflows/analyze.yml
with:
package: drift
sdk: flutter