platform/.github/workflows/dart.yml

67 lines
1.7 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 04:44:45 +00:00
- id: framework_upgrade
2022-01-08 04:37:05 +00:00
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
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"
- id: angel_orm_upgrade
working-directory: packages/orm/angel_orm
run: dart pub upgrade
- name: angel_orm; Verify formatting
working-directory: packages/framework
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/framework
run: dart analyze .