|
8 | 8 | strategy: |
9 | 9 | matrix: |
10 | 10 | test-platform: [vm, chrome] |
11 | | - dart-channel: [unstable] |
| 11 | + dart-channel: ["2.12.0", "2.13.0"] |
12 | 12 | steps: |
13 | | - - uses: actions/checkout@v1 |
14 | | - - name: Install Dart |
15 | | - run: | |
16 | | - sudo apt-get update |
17 | | - sudo apt-get install apt-transport-https |
18 | | - sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -' |
19 | | - sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_${{ matrix.dart-channel }}.list > /etc/apt/sources.list.d/dart_${{ matrix.dart-channel }}.list' |
20 | | - sudo apt-get update |
21 | | - sudo apt-get install dart |
22 | | - - name: Run tests |
23 | | - run: | |
24 | | - export PATH="$PATH:/usr/lib/dart/bin" |
25 | | - pub get |
26 | | - pub run test -p ${{ matrix.test-platform }} |
27 | | - working-directory: hive |
| 13 | + - uses: actions/checkout@v1 |
| 14 | + - uses: dart-lang/setup-dart@v1 |
| 15 | + with: |
| 16 | + sdk: ${{ matrix.dart-channel }} |
| 17 | + - name: Install dependencies |
| 18 | + run: pub get |
| 19 | + working-directory: hive |
| 20 | + - name: Run tests |
| 21 | + run: pub run test -p ${{ matrix.test-platform }} |
| 22 | + working-directory: hive |
| 23 | + |
| 24 | + test-hive-flutter: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + strategy: |
| 27 | + matrix: |
| 28 | + flutter-channel: [dev, beta, stable] |
| 29 | + steps: |
| 30 | + - uses: actions/checkout@v1 |
| 31 | + - uses: actions/setup-java@v1 |
| 32 | + with: |
| 33 | + java-version: "12.x" |
| 34 | + - uses: subosito/flutter-action@v1 |
| 35 | + with: |
| 36 | + flutter-version: ${{ matrix.dart-channel }} |
| 37 | + - name: Install dependencies |
| 38 | + run: flutter pub get |
| 39 | + working-directory: hive_flutter |
| 40 | + - name: Run tests |
| 41 | + run: flutter test |
| 42 | + working-directory: hive_flutter |
28 | 43 |
|
29 | 44 | test-hive_generator: |
30 | 45 | runs-on: ubuntu-latest |
31 | 46 | strategy: |
32 | 47 | matrix: |
33 | | - dart-channel: [unstable] |
| 48 | + dart-channel: ["2.12.0", "2.13.0"] |
34 | 49 | steps: |
35 | | - - uses: actions/checkout@v1 |
36 | | - - name: Install Dart |
37 | | - run: | |
38 | | - sudo apt-get update |
39 | | - sudo apt-get install apt-transport-https |
40 | | - sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -' |
41 | | - sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_${{ matrix.dart-channel }}.list > /etc/apt/sources.list.d/dart_${{ matrix.dart-channel }}.list' |
42 | | - sudo apt-get update |
43 | | - sudo apt-get install dart |
44 | | - - name: Generate build_runner output |
45 | | - run: | |
46 | | - export PATH="$PATH:/usr/lib/dart/bin" |
47 | | - pub get |
48 | | - pub run build_runner build --delete-conflicting-outputs |
49 | | - working-directory: hive_generator/example |
50 | | - |
| 50 | + - uses: actions/checkout@v1 |
| 51 | + - uses: dart-lang/setup-dart@v1 |
| 52 | + with: |
| 53 | + sdk: ${{ matrix.dart-channel }} |
| 54 | + - name: Install dependencies |
| 55 | + run: pub get |
| 56 | + working-directory: hive_generator/example |
| 57 | + - name: Generate build_runner output |
| 58 | + run: pub run build_runner build --delete-conflicting-outputs |
| 59 | + working-directory: hive_generator/example |
| 60 | + |
51 | 61 | check-score: |
52 | 62 | runs-on: ubuntu-latest |
53 | 63 | strategy: |
|
0 commit comments