CI: Add java version

This commit is contained in:
Krille 2023-07-14 18:10:20 +09:00
commit 1308400bb6
No known key found for this signature in database

View file

@ -4,16 +4,17 @@ on: [push, pull_request]
env: env:
FLUTTER_VERSION: '3.10.6' FLUTTER_VERSION: '3.10.6'
JAVA_VERSION: '11.0'
jobs: jobs:
analyze: analyze:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-java@v2 - uses: actions/setup-java@v1
with: with:
distribution: 'adopt' java-version: ${{ env.JAVA_VERSION }}
- uses: subosito/flutter-action@v1 - uses: subosito/flutter-action@v2
with: with:
flutter-version: ${{ env.FLUTTER_VERSION }} flutter-version: ${{ env.FLUTTER_VERSION }}
- run: flutter pub get - run: flutter pub get
@ -25,4 +26,4 @@ jobs:
- name: Apply google services patch - name: Apply google services patch
run: git apply ./scripts/enable-android-google-services.patch run: git apply ./scripts/enable-android-google-services.patch
- run: flutter analyze - run: flutter analyze
- run: flutter test