Skip to content

Commit 6cdef20

Browse files
committed
test: cleanup test workflow codes
1 parent f6c1a3d commit 6cdef20

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/app-test.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
jobs:
1717
app-test:
1818
runs-on: ${{ matrix.os }}
19-
name: Test NodeJS ${{ matrix.node_version }} on ${{ matrix.os }}
19+
name: Test Node.js ${{ matrix.node_version }} on ${{ matrix.os }}
2020
strategy:
2121
fail-fast: false
2222
matrix:
@@ -33,27 +33,15 @@ jobs:
3333
run: |
3434
sudo apt install -y -q --no-install-recommends xvfb
3535
36-
- name: Setup NodeJS ${{ matrix.node_version }}
37-
uses: actions/setup-node@v4
36+
- uses: actions/setup-node@v4
3837
with:
38+
# choose node.js version to use
3939
node-version: ${{ matrix.node_version }}
4040
cache: npm
4141
cache-dependency-path: '**/package-lock.json'
42+
- run: npm ci
4243

43-
- name: Cache dependencies
44-
uses: actions/cache@v4
45-
id: npm-cache
46-
with:
47-
path: |
48-
**/node_modules
49-
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
50-
restore-keys: |
51-
${{ runner.os }}-npm-
52-
53-
- name: Install dependencies
54-
if: steps.npm-cache.outputs.cache-hit != 'true'
55-
run: npm i
56-
44+
# run test
5745
- name: Test module script (Windows or macOS)
5846
if: runner.os != 'Linux'
5947
run: |

0 commit comments

Comments
 (0)