runnable.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. name: Runnable (stable)
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. workflow_dispatch:
  10. jobs:
  11. analyze:
  12. name: Analyze on ${{ matrix.os }}
  13. runs-on: ${{ matrix.os }}
  14. strategy:
  15. matrix:
  16. os: [ubuntu-latest]
  17. steps:
  18. - uses: actions/checkout@v3
  19. - uses: actions/setup-java@v3
  20. with:
  21. distribution: 'zulu'
  22. java-version: '17'
  23. - uses: subosito/flutter-action@v2
  24. with:
  25. channel: 'stable'
  26. - run: dart --version
  27. - run: flutter --version
  28. - run: flutter pub get
  29. - run: flutter analyze lib example/lib
  30. test_iOS:
  31. needs: analyze
  32. name: Test iOS on ${{ matrix.os }}
  33. runs-on: ${{ matrix.os }}
  34. strategy:
  35. matrix:
  36. os: [macos-latest]
  37. steps:
  38. - uses: actions/checkout@v3
  39. - uses: actions/setup-java@v3
  40. with:
  41. distribution: 'zulu'
  42. java-version: '17'
  43. - uses: subosito/flutter-action@v2
  44. with:
  45. architecture: x64
  46. channel: 'stable'
  47. - run: dart --version
  48. - run: flutter --version
  49. - run: flutter pub get
  50. - run: cd example; flutter build ios --no-codesign
  51. test_android:
  52. needs: analyze
  53. name: Test Android on ${{ matrix.os }}
  54. runs-on: ${{ matrix.os }}
  55. strategy:
  56. matrix:
  57. os: [ubuntu-latest]
  58. steps:
  59. - uses: actions/checkout@v3
  60. - uses: actions/setup-java@v3
  61. with:
  62. distribution: 'zulu'
  63. java-version: '17'
  64. - uses: subosito/flutter-action@v2
  65. with:
  66. channel: 'stable'
  67. - run: dart --version
  68. - run: flutter --version
  69. - run: flutter pub get
  70. - run: cd example; flutter build apk --debug