Skip to content

Commit

Permalink
fix: add working dir to each step
Browse files Browse the repository at this point in the history
  • Loading branch information
LuCCoelho committed Oct 31, 2023
1 parent 5921e39 commit 17b21fa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_apk_and_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
working-directory: /ci_integration
permissions:
contents: write

Expand All @@ -29,14 +26,17 @@ jobs:
- run: flutter doctor -v

# Checkout the repository code and get packages.
- uses: actions/checkout@v3
- name: Checkout flutter_app code
uses: actions/checkout@v3
- run: flutter pub get
working-directory: ./ci_integration
run: flutter pub get

- name: Build APK
working-directory: ./ci_integration
run: flutter build apk --split-per-abi --release

- name: Build APP BUNDLE
working-directory: ./ci_integration
run: flutter build appbundle

- name: Create Release
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,26 @@ 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
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: master
- run: flutter doctor -v
working-directory: ./ci_integration
run: flutter doctor -v

# Checkout gallery code and get packages.
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Checkout gallery code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: flutter pub get
working-directory: ./ci_integration
run: flutter pub get

# Analyze, check formatting, and run unit tests.
- run: flutter analyze
- name: Analyze
working-directory: ./ci_integration
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

0 comments on commit 17b21fa

Please sign in to comment.