platform/.github/workflows/dart.yml

96 lines
2.8 KiB
YAML
Raw Normal View History

2022-01-08 04:37:05 +00:00
# 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: Angel3 CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
jobs_001:
name: Validate framework package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
with:
sdk: "2.15.1"
2022-01-08 06:03:19 +00:00
- id: angel3_framework_upgrade
2022-01-08 04:37:05 +00:00
working-directory: packages/framework
run: dart pub upgrade
2022-01-08 06:03:19 +00:00
- name: angel3_framework; Verify formatting
2022-01-08 04:37:05 +00:00
working-directory: packages/framework
run: dart format --output=none --set-exit-if-changed .
# Consider passing '--fatal-infos' for slightly stricter analysis.
2022-01-08 06:03:19 +00:00
- name: angel3_framework; Analyze source code
2022-01-08 04:37:05 +00:00
working-directory: packages/framework
run: dart analyze .
2022-01-08 06:03:19 +00:00
- name: angel3_framework; Run tests
2022-01-08 04:37:05 +00:00
working-directory: packages/framework
run: dart test
2022-01-08 05:23:54 +00:00
jobs_002:
name: Validate ORM packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
with:
sdk: "2.15.1"
2022-01-08 06:03:19 +00:00
# Angel3 ORM
- id: angel3_orm_upgrade
2022-01-08 05:23:54 +00:00
working-directory: packages/orm/angel_orm
run: dart pub upgrade
2022-01-08 06:03:19 +00:00
- name: angel3_orm; Verify formatting
2022-01-08 05:52:34 +00:00
working-directory: packages/orm/angel_orm
2022-01-08 05:23:54 +00:00
run: dart format --output=none --set-exit-if-changed .
# Consider passing '--fatal-infos' for slightly stricter analysis.
2022-01-08 06:03:19 +00:00
- name: angel3_orm; Analyze source code
2022-01-08 05:52:34 +00:00
working-directory: packages/orm/angel_orm
2022-01-08 05:23:54 +00:00
run: dart analyze .
2022-01-08 06:03:19 +00:00
# Angel3 ORM Generator
- id: angel3_orm_generator_upgrade
working-directory: packages/orm/angel_orm_generator
run: dart pub upgrade
- name: angel3_generator_orm; Verify formatting
working-directory: packages/orm/angel_orm_generator
run: dart format --output=none --set-exit-if-changed .
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: angel3_generator_orm; Analyze source code
working-directory: packages/orm/angel_orm_generator
run: dart analyze .
2022-01-08 06:20:42 +00:00
# Angel3 ORM Test
- id: angel3_orm_test_upgrade
working-directory: packages/orm/angel_orm_test
run: dart pub upgrade
- name: angel3_test_orm; Verify formatting
working-directory: packages/orm/angel_orm_test
run: dart format --output=none --set-exit-if-changed .
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: angel3_test_orm; Analyze source code
working-directory: packages/orm/angel_orm_test
run: dart analyze .