package:grpc_cronet CI #196
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
name: package:grpc_cronet CI | |
on: | |
# Run on PRs and pushes to the default branch. | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: "0 0 * * 0" | |
env: | |
PUB_ENVIRONMENT: bot.github | |
jobs: | |
analyze: | |
name: Lint and static analysis | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
with: | |
channel: 'stable' | |
flutter-version: '3.0.2' | |
- id: install | |
name: Install dependencies | |
run: flutter pub get | |
- name: Check formatting | |
run: flutter format --output=none --set-exit-if-changed . | |
if: steps.install.outcome == 'success' | |
- name: Download route_guide dependencies | |
run: flutter pub get | |
working-directory: example/route_guide | |
if: steps.install.outcome == 'success' | |
- name: Analyze code | |
run: flutter analyze --fatal-infos | |
if: steps.install.outcome == 'success' | |
build-example-linux: | |
name: "Build example on linux" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: example/helloworld | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
with: | |
channel: 'stable' | |
flutter-version: '3.0.2' | |
- name: Download dependencies | |
run: flutter pub get | |
- name: apt-get update | |
run: sudo apt-get update | |
- name: Install required packages | |
run: sudo apt-get install ninja-build gtk+-3.0 glib-2.0 gio-2.0 | |
- name: Build executable | |
run: flutter build linux | |
build-example-windows: | |
name: "Build example on Windows" | |
runs-on: windows-latest | |
defaults: | |
run: | |
working-directory: example/helloworld | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
with: | |
channel: 'stable' | |
flutter-version: '3.0.2' | |
- name: Download dependencies | |
run: flutter pub get | |
- name: Build executable | |
run: flutter build windows |