-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (30 loc) · 980 Bytes
/
dart.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
name: Dart Class Runtime Tests
on:
deployment_status:
jobs:
build:
runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success' && github.event.deployment_status.environment == 'Production'
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: Install dependencies
run: dart pub get
working-directory: ./test
- name: Install Supadart
run: dart pub global activate supadart
working-directory: ./test
# Generate Classes via Supadart
- name: Generate Classes
run: supadart -u $SUPABASE_URL -k $SUPABASE_ANON_KEY -d
working-directory: ./test
- name: Run tests
run: dart run test
working-directory: ./test