ci: try fix sqlite issue by using ubuntu2404 image #718
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 | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
env: | |
CI_FLUTTER_VERSION: '3.27.0' | |
jobs: | |
flutter_test: | |
name: Flutter test | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{env.CI_FLUTTER_VERSION}} | |
cache: true | |
- run: | | |
sudo apt update -y | |
sudo apt install -y ninja-build libgtk-3-dev sqlite3 | |
- name: Precompile | |
run: | | |
git submodule update --init --recursive --force | |
flutter pub get | |
dart ./Makefile.dart | |
- name: Run flutter analyze | |
run: | | |
flutter analyze --fatal-infos --fatal-warnings lib | |
- name: Run flutter test | |
run: | | |
flutter test |