-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.16 KB
/
tests.yml
File metadata and controls
47 lines (37 loc) · 1.16 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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
env:
VERSION: '3.4.5'
SERVERPOD_PASSWORD_database: 'C3Q_tQqgs-_pDhLzSHnnPYigedJblBQs'
SERVERPOD_PASSWORD_redis: 'zJMeLYMBbWrfOTL611zHnkG-6PENvApE'
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.32.8'
- name: Start containers
working-directory: app_analytics_server
run: docker compose up --quiet-pull --quiet-build --build -d
- name: Install dependencies
working-directory: app_analytics_server
run: dart pub get
- name: Install Serverpod CLI
working-directory: app_analytics_server
run: dart pub global activate serverpod_cli $VERSION
- name: Run Serverpod generator
working-directory: app_analytics_server
run: serverpod generate
- name: Run tests
working-directory: app_analytics_server
run: dart test
- name: Stop containers
if: always()
working-directory: app_analytics_server
run: docker compose down -v