-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.41 KB
/
test.yml
File metadata and controls
50 lines (47 loc) · 1.41 KB
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
name: Tests
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**/*.dart'
pull_request:
branches:
- main
paths:
- '**/*.dart'
jobs:
test:
name: Test
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Pub Get
run: dart pub get
- name: Run Main Tests
working-directory: ./packages/hyper_storage
run: |
dart pub run coverage:test_with_coverage
dart pub run coverage:format_coverage --packages=../../.dart_tool/package_config.json --lcov -i coverage/coverage.json -o coverage/lcov.info
- name: Run Shared Preferences Tests
working-directory: ./packages/hyper_storage_shared_preferences
run: flutter test
- name: Run Hive Tests
working-directory: ./packages/hyper_storage_hive
run: dart run test
- name: Run Secure Storage Tests
working-directory: ./packages/hyper_storage_secure
run: flutter test
- name: Run Flutter Storage Tests
working-directory: ./packages/hyper_storage_flutter
run: flutter test
- name: Upload Coverage
uses: codecov/codecov-action@v5
with:
files: packages/hyper_storage/coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}