-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 928 Bytes
/
tests.yaml
File metadata and controls
44 lines (36 loc) · 928 Bytes
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
name: Unit Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Unit Testing
runs-on: ubuntu-latest
steps:
- name: 📚 Checkout code
uses: actions/checkout@v3
- name: 🐦 Set up Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: 📦 Install dependencies
run: dart pub get
- name: 🧪 Run Tests
run: dart test -r json > test-results.json
continue-on-error: true
- name: 📊 Upload Test Results
uses: actions/upload-artifact@v4.6.2
with:
name: test-results
path: test-results.json
- name: 📝 Check Test Results
run: |
if grep -q '"result":"failure"' test-results.json; then
echo "❌ Tests failed"
exit 1
fi
echo "✅ All tests passed"