Skip to content

Commit 24042a7

Browse files
committed
Fix working directory
1 parent 4275a7a commit 24042a7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
11
name: "App Validation"
22
description: "Runs lint, format, and test on an app"
3+
inputs:
4+
working-directory:
5+
description: "Directory to run validation in"
6+
required: true
37
runs:
48
using: "composite"
59
steps:
610
- name: Set up flutter
711
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
12+
working-directory: ${{ inputs.working-directory }}
813

914
- name: Install linux integration test dependencies
1015
shell: bash
1116
run: sudo apt-get update && sudo apt-get install -y libglu1-mesa xvfb
17+
working-directory: ${{ inputs.working-directory }}
1218

1319
- name: Get dependencies
1420
shell: bash
1521
run: flutter pub get
22+
working-directory: ${{ inputs.working-directory }}
1623

1724
- name: Check dart formatting
1825
shell: bash
1926
run: dart format -o none --set-exit-if-changed .
27+
working-directory: ${{ inputs.working-directory }}
2028

2129
- name: Check dart analysis
2230
shell: bash
2331
run: dart analyze --fatal-infos --fatal-warnings .
32+
working-directory: ${{ inputs.working-directory }}
2433

2534
- name: Run unit tests
2635
shell: bash
2736
run: flutter test
37+
working-directory: ${{ inputs.working-directory }}
2838

2939
- name: Run linux integration tests
3040
shell: bash
3141
run: |
3242
export DISPLAY=:99 # Set display for Xvfb
3343
xvfb-run -a flutter test integration_test/app_test.dart -d linux
44+
working-directory: ${{ inputs.working-directory }}

.github/workflows/validation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- uses: ./.github/actions/app_validation
22+
with:
23+
working-directory: vanilla

0 commit comments

Comments
 (0)