66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
# 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"
|
|
|
|
- id: framework_upgrade
|
|
working-directory: packages/framework
|
|
run: dart pub upgrade
|
|
|
|
- name: framework; Verify formatting
|
|
working-directory: packages/framework
|
|
run: dart format --output=none --set-exit-if-changed .
|
|
|
|
# Consider passing '--fatal-infos' for slightly stricter analysis.
|
|
- name: framework; Analyze source code
|
|
working-directory: packages/framework
|
|
run: dart analyze .
|
|
|
|
- name: framework; Run tests
|
|
working-directory: packages/framework
|
|
run: dart test
|
|
|
|
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"
|
|
|
|
- id: angel_orm_upgrade
|
|
working-directory: packages/orm/angel_orm
|
|
run: dart pub upgrade
|
|
|
|
- name: angel_orm; Verify formatting
|
|
working-directory: packages/orm/angel_orm
|
|
run: dart format --output=none --set-exit-if-changed .
|
|
|
|
# Consider passing '--fatal-infos' for slightly stricter analysis.
|
|
- name: angel_orm; Analyze source code
|
|
working-directory: packages/orm/angel_orm
|
|
run: dart analyze .
|
|
|