Skip to content

Emit a TokenRefreshFailedEvent when the automatic token refresh fails #96

Emit a TokenRefreshFailedEvent when the automatic token refresh fails

Emit a TokenRefreshFailedEvent when the automatic token refresh fails #96

Workflow file for this run

# Heavily inspired by https://github.com/cfug/dio/blob/main/.github/workflows/tests.yml
name: Test and Code Coverage
on:
push:
branches:
- main
tags:
- 'v*.*.*'
paths-ignore:
- "**.md"
pull_request:
branches:
- main
paths-ignore:
- "**.md"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
workflows:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ min, stable, beta ]
env:
TEST_PRESET: all
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
channel: ${{ matrix.sdk == 'min' && 'stable' || matrix.sdk }}
flutter-version: ${{ matrix.sdk == 'min' && '3.22.0' || '' }}
- run: |
echo TARGET_DART_SDK=${{ matrix.sdk }} >> $GITHUB_ENV
# see https://github.com/invertase/melos/issues/796
- uses: bluefireteam/melos-action@main
continue-on-error: true
with:
run-bootstrap: true
bootstrap-no-example: false
- uses: bluefireteam/melos-action@main
with:
run-bootstrap: true
bootstrap-no-example: true
- name: '[Verify step] ✨ Format'
if: ${{ matrix.sdk == 'stable' }}
run: melos run format
- name: '[Verify step] 🕵️ Analyze packages'
if: ${{ matrix.sdk == 'stable' }}
run: melos run analyze
# - name: '[Verify step] 🕵️ Run Pana'
# if: ${{ matrix.sdk == 'stable' }}
# run: |
# flutter pub global activate pana
# melos run pana
- name: '[Verify step] Test Dart packages [VM]'
run: melos run test:vm
- name: '[Verify step] Test Dart packages [Chrome]'
run: melos run test:web:chrome
- name: '[Verify step] Test Dart packages [Firefox]'
run: melos run test:web:firefox
- name: Remove dart_test.yaml Files
run: |
find . -type f -name 'dart_test.yaml' -delete
- name: '[Verify step] Test Flutter packages'
run: melos run test:flutter
- name: '[Coverage] Format & print test coverage'
if: ${{ matrix.sdk == 'stable' }}
run: melos run coverage:combine
- name: Report to Codecov
uses: codecov/codecov-action@v4
if: ${{ matrix.sdk == 'stable' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: coverage/lcov.info
fail_ci_if_error: false