Skip to content

Commit c98181d

Browse files
Mike Zornhoshsadiq
andauthored
Use working directory trick
Co-authored-by: Hosh <[email protected]>
1 parent b85523b commit c98181d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/dev-server-ui.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ on:
1414
jobs:
1515
ci:
1616
runs-on: ubuntu-latest
17-
17+
defaults:
18+
run:
19+
working-directory: shared-models
1820
steps:
1921
- name: Checkout repository
2022
uses: actions/checkout@v4
@@ -26,21 +28,20 @@ jobs:
2628
cache: 'npm'
2729

2830
- name: Install dependencies
29-
run: cd internal/dev_server/ui && npm ci
31+
run: npm ci
3032

3133
- name: Run lint
32-
run: cd internal/dev_server/ui && npm run lint
34+
run: npm run lint
3335

3436
- name: Run Prettier
35-
run: cd internal/dev_server/ui && npm run prettier:write
37+
run: cd npm run prettier:write
3638

3739
- name: Run tests
38-
run: cd internal/dev_server/ui && npm test
40+
run: npm test
3941

4042
- name: Run build
41-
run: cd internal/dev_server/ui && npm run build
43+
run: npm run build
4244

4345
- name: Check for uncommitted changes
4446
run: |
45-
cd internal/dev_server/ui
4647
git diff --exit-code || (echo 'Error: Uncommitted changes detected after build. Run the build locally and commit the changes.' && exit 1)

0 commit comments

Comments
 (0)