From 8ecccdded18ccea0ef7c1954b93206a265c351d4 Mon Sep 17 00:00:00 2001 From: darkverbito Date: Mon, 13 May 2024 11:27:09 -0500 Subject: [PATCH] Update dart.yml --- .github/workflows/dart.yml | 41 ++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 7241e82..8453be7 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -18,25 +18,36 @@ jobs: steps: - uses: actions/checkout@v1 - # Note: This workflow uses the latest stable version of the Dart SDK. - # You can specify other versions if desired, see documentation here: - # https://github.com/dart-lang/setup-dart/blob/main/README.md - # - uses: dart-lang/setup-dart@v1 - - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603 + - name: Clone the Flutter repository + uses: actions/checkout@v1 + with: + repository: flutter/flutter + ref: 3.3.0 + path: flutter + + - name: Add the flutter tool to the path + run: | + ls -al "$GITHUB_WORKSPACE/../flutter/bin" + echo "$GITHUB_WORKSPACE/../flutter/bin" >> $GITHUB_PATH + echo "$GITHUB_WORKSPACE/../flutter/bin/cache/dart-sdk/bin" >> $GITHUB_PATH + + - name: Populate the Flutter tool's cache of binary artifacts + run: | + flutter config --no-analytics + flutter precache + + - name: Reconfigure git to use HTTP authentication + run: > + git config --global url."https://github.com/".insteadOf 'git@github.com:' + + - name: Get Flutter packages + run: flutter pub get - - name: Install dependencies - run: dart pub get - - # Uncomment this step to verify the use of 'dart format' on each commit. - # - name: Verify formatting - # run: dart format --output=none --set-exit-if-changed . - - # Consider passing '--fatal-infos' for slightly stricter analysis. - name: Analyze project source - run: dart analyze + run: flutter analyze # Your project will need to have tests in test/ and a dependency on # package:test for this step to succeed. Note that Flutter projects will # want to change this to 'flutter test'. - name: Run tests - run: dart test + run: flutter test