-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from mmvergara/github-actions-tests
GitHub actions tests
- Loading branch information
Showing
4 changed files
with
44 additions
and
486 deletions.
There are no files selected for viewing
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
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 |
Oops, something went wrong.