.github: add secrets to fix android build #99
Workflow file for this run
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: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
checks: | |
name: Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: flutter --version | |
- run: flutter pub get | |
- run: dart format --output=none --set-exit-if-changed . | |
- run: dart analyze --fatal-infos | |
- run: flutter test | |
test-ios: | |
name: Test iOS | |
runs-on: macos-latest | |
needs: checks | |
steps: | |
- name: List all simulators | |
run: "xcrun xctrace list devices" | |
- name: Start simulator | |
run: | | |
UDID=$(xcrun xctrace list devices | grep "^iPhone 15 Plus Simulator (18.1)" | awk '{gsub(/[()]/,""); print $NF}') | |
echo $UDID | |
xcrun simctl boot "${UDID:?No Simulator with this name found}" | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- run: flutter test integration_test |