fix: notifications throwing null pointer exception when androd style … #1
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: Flutter Checks | |
on: | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
- "packages/react-native/**" | |
- "**.md" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "docs/**" | |
- "packages/react-native/**" | |
- "**.md" | |
jobs: | |
analyze: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Install Flutter" | |
run: ./.github/workflows/scripts/install-flutter.sh stable | |
- name: "Install Tools" | |
run: | | |
./.github/workflows/scripts/install-tools.sh | |
- name: "Bootstrap Workspace" | |
run: melos bootstrap | |
working-directory: ./packages/flutter | |
- name: "Run Analyze" | |
run: melos run analyze | |
working-directory: ./packages/flutter | |
- name: "Pub Check" | |
run: | | |
melos exec -c 1 --no-private --ignore="*example*" -- \ | |
dart pub publish --dry-run | |
working-directory: ./packages/flutter | |
format: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Install Flutter" | |
run: ./.github/workflows/scripts/install-flutter.sh stable | |
- name: "Install Tools" | |
run: | | |
./.github/workflows/scripts/install-tools.sh | |
curl -sL https://github.com/google/google-java-format/releases/download/google-java-format-1.3/google-java-format-1.3-all-deps.jar -o $HOME/google-java-format.jar | |
- name: "Bootstrap Workspace" | |
run: melos bootstrap | |
working-directory: ./packages/flutter | |
- name: "Dart" | |
run: | | |
melos exec -c 1 -- \ | |
"flutter format ." | |
../../.github/workflows/scripts/validate-formatting.sh | |
working-directory: ./packages/flutter | |
- name: "Objective-C" | |
if: ${{ success() || failure() }} | |
run: | | |
melos exec -c 4 --ignore="*platform_interface*" --ignore="*web*" --dir-exists="ios" -- \ | |
find . -maxdepth 3 -name "*.h" -o -name "*.m" -print0 \| xargs -0 clang-format -i --style=Google --verbose | |
../../.github/workflows/scripts/validate-formatting.sh | |
working-directory: ./packages/flutter | |
- name: "Java" | |
if: ${{ success() || failure() }} | |
run: | | |
melos exec -c 4 --ignore="*platform_interface*" --ignore="*web*" --dir-exists="android" -- \ | |
find . -maxdepth 12 -name "*.java" -print0 \| xargs -0 java -jar $HOME/google-java-format.jar --replace | |
../../.github/workflows/scripts/validate-formatting.sh | |
working-directory: ./packages/flutter | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Install Flutter" | |
run: ./.github/workflows/scripts/install-flutter.sh stable | |
- name: "Install Tools" | |
run: ./.github/workflows/scripts/install-tools.sh | |
- name: "Bootstrap Workspace" | |
run: melos bootstrap | |
working-directory: ./packages/flutter | |
- name: "Flutter Test" | |
run: melos run test --no-select | |
working-directory: ./packages/flutter |