Skip to content

Commit

Permalink
Merge pull request #8 from mmvergara/github-actions-tests
Browse files Browse the repository at this point in the history
GitHub actions tests
  • Loading branch information
mmvergara authored Jun 22, 2024
2 parents dc7dc03 + 6afecda commit 5ab5655
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 486 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Dart Class Runtime Tests

on:
push:
branches:
- "*"
pull_request:
branches:
- "*"

jobs:
build:
runs-on: ubuntu-latest

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
working-directory: ./test

- name: Run tests
run: dart run test
working-directory: ./test
Loading

0 comments on commit 5ab5655

Please sign in to comment.