appraisal
appraisal copied to clipboard
Error: Process completed with exit code 1. flutter ci/cd
I have tried to setup CI/CD using flutter actions but when I am committing code and action run it gives this error:
Run flutter build windows
Running "flutter pub get" in flutter_tools... 3.8s
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Error: Process completed with exit code 1.
My dart.yml
name: Dart
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- name: Flutter action
uses: subosito/[email protected]
with:
flutter-version: '2.2.2'
channel: stable
- run: flutter config --enable-windows-desktop
- run: flutter build windows
- run: flutter pub get
- run: flutter test
- run: flutter build apk
This looks like you're using GitHub Actions. Could you try the branch as included in #174 and report back on whether or not that fixes it for you?
I'm going to close this as it's been open a long time, and should be fixed with #202 being merged.