Skip to content

Commit

Permalink
style: make working dir default
Browse files Browse the repository at this point in the history
  • Loading branch information
LuCCoelho committed Oct 31, 2023
1 parent 06e606b commit 94ef063
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: flutter test

0 comments on commit 94ef063

Please sign in to comment.