feat: Compose schema from types #523
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Test Pipeline | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
analyze: | |
name: Analyze Code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1.3 | |
with: | |
sdk: "3.0.0" | |
- uses: bluefireteam/melos-action@v3 | |
- name: Bootstrap | |
run: | | |
dart pub global activate melos | |
melos bootstrap | |
- name: Check formatting | |
run: melos format -- --set-exit-if-changed | |
- name: Check linting | |
run: | | |
melos builder | |
melos analyze | |
test: | |
name: Test Packages | |
runs-on: ubuntu-latest | |
services: | |
mariadb: | |
image: mariadb | |
env: | |
MARIADB_ROOT_PASSWORD: password | |
MARIADB_DATABASE: test_db | |
MARIADB_USER: root | |
ports: | |
- 3000:3306 | |
mysqldb: | |
image: mysql | |
env: | |
MYSQL_USER: 'tester' | |
MYSQL_DATABASE: test_db | |
MYSQL_PASSWORD: 'password' | |
MYSQL_ROOT_PASSWORD: 'password' | |
ports: | |
- 3001:3306 | |
postgresdb: | |
image: postgres:latest | |
env: | |
POSTGRES_DB: test_db | |
POSTGRES_PASSWORD: password | |
POSTGRES_USER: root | |
ports: | |
- 3002:5432 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1.3 | |
with: | |
sdk: "3.0.0" | |
- uses: bluefireteam/melos-action@v3 | |
- name: Prepare Workspace | |
run: | | |
dart pub global activate melos | |
dart pub global activate coverage | |
melos bootstrap | |
melos builder | |
- name: Run Unit Tests | |
run: melos tests:ci | |
- name: Run E2E Tests | |
run: cd packages/orm && "./e2e_test.sh" | |
# - name: Combine Coverage | |
# run: melos coverage | |
# - name: Upload Coverage | |
# uses: codecov/codecov-action@v3 | |
# env: | |
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
# with: | |
# files: coverage/*_lcov.info |