Runtime Test #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |