Skip to content

Commit 5984c60

Browse files
committed
updating tests.yml
1 parent 0ad8dbe commit 5984c60

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.github/workflows/tests.yml

+21-9
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,24 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v1
11-
- name: Use Node.js 16.16.0
12-
uses: actions/setup-node@v1
13-
with:
14-
node-version: 16.0
15-
- name: Install dependencies
16-
run: npm install
17-
- name: Test
18-
run: npm test -- --watch=false --browsers=ChromeHeadless
10+
- name: Checkout repo
11+
uses: actions/checkout@v3 # Update to latest stable version
12+
13+
- name: Use Node.js 18 # Update to a stable LTS version (16 is outdated)
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 18
17+
18+
- name: Install dependencies (clean install)
19+
run: npm ci # More reliable than 'npm install' for CI
20+
21+
- name: Install Chrome for Headless Tests
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y google-chrome-stable
25+
26+
- name: Test
27+
run: npm test -- --watch=false --browsers=ChromeHeadless
28+
29+
- name: Debug Installed Angular Packages
30+
run: npm list @angular/material

0 commit comments

Comments
 (0)