fix: Add serverpod migrations table. #246
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: Serverpod CI | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
- tests | |
- stable-1.0 | |
- stable-1.1 | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
dart_format: | |
name: dart format | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dart-version: ['3.0.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1.3 | |
with: | |
sdk: ${{ matrix.dart-version }} | |
- name: Verify formatting | |
run: dart format --output=none --set-exit-if-changed . | |
dart_analyze: | |
name: dart analyze | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flutter-version: ['3.10.0', '3.13.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ matrix.flutter-version }} | |
# - name: Setup Firebase dummy file | |
# run: mv packages/serverpod/example/example_flutter/lib/firebase_options_dummy.dart packages/serverpod/example/example_flutter/lib/firebase_options.dart | |
- name: Install dependencies | |
run: util/pub_get_all | |
- name: Analyze | |
run: util/run_tests_analyze | |
serverpod_generate: | |
name: serverpod generate | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flutter-version: ['3.10.0', '3.13.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ matrix.flutter-version }} | |
- name: Run serverpod generate | |
run: util/run_tests_serverpod_generate | |
update_pubspecs: | |
name: update pubspecs | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flutter-version: ['3.10.0', '3.13.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ matrix.flutter-version }} | |
- name: Run serverpod update pubspecs | |
run: util/run_tests_update_pubspecs | |
unit_tests: | |
name: Unit tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
flutter-version: ['3.10.0', '3.13.0'] | |
os: [windows-latest, ubuntu-latest] | |
path: ['tools/serverpod_cli', 'packages/serverpod', 'packages/serverpod_serialization', 'tests/serverpod_test_client', 'tests/serverpod_test_server'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ matrix.flutter-version }} | |
- name: Run unit tests | |
run: dart test | |
working-directory: ${{ matrix.path }} | |
single_server_tests: | |
name: Serverpod tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flutter-version: ['3.10.0', '3.13.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ matrix.flutter-version }} | |
- name: Run single server tests | |
run: util/run_tests_single_server | |
integration_tests: | |
name: Serverpod integration tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flutter-version: ['3.10.0', '3.13.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ matrix.flutter-version }} | |
- name: Run integration tests | |
run: util/run_tests_integration | |
cli_tests: | |
name: CLI tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flutter-version: ['3.10.0', '3.13.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ matrix.flutter-version }} | |
- name: Run CLI tests | |
run: util/run_tests_cli | |
migration_e2e_tests: | |
name: Migration e2e tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flutter-version: ['3.7.0', '3.10.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ matrix.flutter-version }} | |
- name: Run e2e migration tests | |
run: util/run_tests_migrations_e2e |