This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
Bump flutter_lints from 2.0.1 to 2.0.3 (#293) #451
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: 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 |