Skip to content

Commit 0d45e1a

Browse files
authored
Update angular-tests.yml
1 parent d8202c6 commit 0d45e1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/angular-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,23 @@ jobs:
3333
uses: actions/cache@v3
3434
with:
3535
path: ~/.npm
36-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
36+
key: ${{ runner.os }}-node-${{ hashFiles('unicontract-frontend/package-lock.json') }}
3737
restore-keys: |
3838
${{ runner.os }}-node-
3939
4040
# 4️⃣ Install dependencies
4141
- name: Install dependencies
4242
run: npm ci
43+
working-directory: unicontract-frontend
4344

4445
# 5️⃣ Build Angular (opzionale, ma consigliato)
4546
- name: Build Angular
4647
run: npm run build --if-present
48+
working-directory: unicontract-frontend
4749

4850
# 6️⃣ Run tests in headless mode
4951
- name: Run frontend tests
5052
run: npx ng test --watch=false --browsers=ChromeHeadlessCI
53+
working-directory: unicontract-frontend
5154
env:
5255
CHROME_BIN: /usr/bin/google-chrome

0 commit comments

Comments
 (0)