PAINTROID-660 Add LineTool #196
Workflow file for this run
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: Build, Test and Analyze | |
on: [ push, pull_request ] | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: subosito/[email protected] | |
with: | |
flutter-version: '3.10.5' | |
channel: 'stable' | |
cache: true | |
- name: Setup | |
run: | | |
flutter pub get | |
flutter pub run build_runner build --delete-conflicting-outputs | |
dart pub global activate protoc_plugin | |
chmod +x generate_protos.sh | |
./generate_protos.sh | |
- name: Static Analysis | |
run: flutter analyze | |
- name: Unit Tests | |
run: flutter test test/unit | |
- name: Widget Tests | |
run: flutter test test/widget | |
- name: Build release package | |
run: flutter build apk --release | |
- name: Archive build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: apk | |
path: | | |
build/app/outputs/flutter-apk/app-release.apk | |