Merge pull request #202 from weblate/weblate-safe-notes-safe-notes-app #44
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: Test CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install OpenJDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17.x' | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version-file: pubspec.yaml | |
architecture: x64 | |
- name: Get flutter dependencies | |
run: flutter pub get | |
- name: Check for any formatting issues in the code | |
run: dart format --set-exit-if-changed . | |
- name: Check import sorting | |
run: dart run import_sorter:main --exit-if-changed | |
- name: Analyze the code for linting errors | |
run: flutter analyze lib test | |
- name: Run widget tests | |
run: flutter test | |
- name: Build apk | |
run: flutter build apk --debug | |
- name: Build appbundle | |
run: flutter build appbundle --debug | |
- name: Build iOS app | |
run: flutter build ios --release --no-codesign |