Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Bump drift from 2.13.1 to 2.14.1 #503

Bump drift from 2.13.1 to 2.14.1

Bump drift from 2.13.1 to 2.14.1 #503

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter --version
- run: flutter pub get
- name: get netease_api package
working-directory: netease_api
run: flutter pub get
- name: Verify formatting
run: dart format --set-exit-if-changed .
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: flutter analyze
- name: Flutter unit test
run: flutter test --coverage --coverage-path=lcov.info
build-linux:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter config --enable-linux-desktop
- name: Patch for linux build
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
sudo apt install libavcodec-dev libavformat-dev libavdevice-dev
sudo apt-get install libsdl2-dev
flutter doctor
- name: Build APP
run: flutter build linux
build-android:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build apk