appraisal icon indicating copy to clipboard operation
appraisal copied to clipboard

Error: Process completed with exit code 1. flutter ci/cd

Open divyesh008 opened this issue 2 years ago • 1 comments

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.

flutter cicd

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

divyesh008 avatar Jul 22 '21 15:07 divyesh008

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?

nickcharlton avatar Jul 28 '21 11:07 nickcharlton

I'm going to close this as it's been open a long time, and should be fixed with #202 being merged.

nickcharlton avatar Jan 30 '23 17:01 nickcharlton