thoughtbot / appraisal

A Ruby library for testing your library against different versions of dependencies.
https://thoughtbot.com
MIT License
1.25k stars 107 forks source link

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

Closed divyesh008 closed 1 year ago

divyesh008 commented 2 years ago

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/flutter-action@v1.5.3
        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
nickcharlton commented 2 years ago

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 commented 1 year ago

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