Skip to content

fix(gotrue): Signing in does not remove the session unless the operation succeeds. #97

fix(gotrue): Signing in does not remove the session unless the operation succeeds.

fix(gotrue): Signing in does not remove the session unless the operation succeeds. #97

Workflow file for this run

name: gotrue
on:
push:
branches:
- main
paths:
- 'packages/gotrue/**'
- '.github/workflows/gotrue.yaml'
pull_request:
paths:
- 'packages/gotrue/**'
- '.github/workflows/gotrue.yaml'
jobs:
test:
name: Test SDK ${{ matrix.sdk }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [stable, beta, dev]
defaults:
run:
working-directory: packages/gotrue
runs-on: ${{ matrix.os }}
steps:
- name: Checks-out repo
uses: actions/checkout@v2
- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Bootstrap workspace
run: |
cd ../../
dart pub global activate melos
melos bootstrap --ignore="supabase_flutter"
- name: dartfmt
if: ${{ matrix.sdk == 'stable'}}
run: dart format lib test -l 80 --set-exit-if-changed
- name: analyzer
run: dart analyze --fatal-warnings --fatal-infos .
- name: Build Docker image
run: |
cd ../../infra/gotrue
docker-compose down
docker-compose up -d
- name: Sleep for 5 seconds
uses: jakejarvis/wait-action@master
with:
time: '5s'
- name: Run tests
run: dart test --concurrency=1