Skip to content

update the json protocol to include context messages, locations #185

update the json protocol to include context messages, locations

update the json protocol to include context messages, locations #185

Workflow file for this run

name: package:dart_services
on:
push:
branches: [ main ]
paths:
- '.github/workflows/dart_services.yml'
- 'pkgs/dart_services/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/dart_services.yml'
- 'pkgs/dart_services/**'
schedule:
- cron: '0 0 * * 0' # weekly
jobs:
# Check code formatting, static analysis, and build on a single OS (linux)
# against Dart stable and beta.
analyze:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/dart_services/
strategy:
fail-fast: false
matrix:
sdk: [stable, beta, main]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: subosito/flutter-action@aa6d9b984461fff0e0e0673f96483607df98db84
- name: Install dependencies
run: sudo apt-get install -y protobuf-compiler redis
- name: Install dependencies
run: dart pub get
- name: Analyze code
run: dart analyze --fatal-infos .
- name: check formatting
run: dart format --set-exit-if-changed lib test tool
- name: Run tests
env:
FLUTTER_CHANNEL: ${{ matrix.sdk }}
run: |
export PATH=$PATH:$HOME/.pub-cache/bin
dart pub global activate protoc_plugin
dart run grinder test
# Run the benchmarks on the bots to ensure they don't regress.
benchmark:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/dart_services/
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: subosito/flutter-action@aa6d9b984461fff0e0e0673f96483607df98db84
- run: sudo apt-get install -y protobuf-compiler redis
- run: dart pub get
- name: Download the Flutter SDK
run: |
flutter doctor -v
- name: Prep the repo
env:
FLUTTER_CHANNEL: stable
run: dart run grinder buildbot
- name: Run benchmarks
run: dart benchmark/bench.dart