From 94ef06312338db89fe0c0106f5c7ed7934cc779f Mon Sep 17 00:00:00 2001 From: Luisa Coelho Date: Tue, 31 Oct 2023 10:33:41 -0300 Subject: [PATCH] style: make working dir default --- .github/workflows/test.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f5b1ff..a809729 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,26 +12,25 @@ jobs: unit-test: name: Unit tests runs-on: ubuntu-latest + defaults: + run: + working-directory: ./ci_integration steps: # Set up Flutter. - - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - name: Clone Flutter repository with master channel - working-directory: ./ci_integration - run: flutter doctor -v + uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa + with: + channel: master + - run: flutter doctor -v # Checkout gallery code and get packages. - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - name: Checkout gallery code - working-directory: ./ci_integration - run: flutter pub get + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + - run: flutter pub get # Analyze, check formatting, and run unit tests. - - name: Analyze - working-directory: ./ci_integration - run: flutter analyze + - run: flutter analyze - name: Ensure the Dart code is formatted correctly - working-directory: ./ci_integration run: dart format --set-exit-if-changed . - name: Run Flutter unit tests - working-directory: ./ci_integration - run: flutter test \ No newline at end of file + run: flutter test