Skip to content

Commit 8351129

Browse files
committed
will fix jest.yml file to integrate github actions in ci/cd workflow
1 parent 36f86ed commit 8351129

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/jest.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ jobs:
44
test:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- name: Setup Node.js
9-
uses: actions/setup-node@v1
10-
with:
11-
node-version: "18.13.0"
7+
- uses: actions/checkout@v2
8+
- name: Setup Node.js
9+
uses: actions/setup-node@v1
10+
with:
11+
node-version: "18.13.0"
1212

13-
- name: Cache node modules
14-
uses: actions/cache@v2
15-
env:
16-
cache-name: cache-node-modules
17-
with:
18-
path: ~/.npm
19-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
20-
restore-keys: |
21-
${{ runner.os }}-build-${{ env.cache-name }}-
22-
${{ runner.os }}-build-
23-
${{ runner.os }}-
24-
- name: Install Dependencies
25-
run: npm install
13+
- name: Cache node modules
14+
uses: actions/cache@v2
15+
env:
16+
cache-name: cache-node-modules
17+
with:
18+
path: ~/.npm
19+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
20+
restore-keys: |
21+
${{ runner.os }}-build-${{ env.cache-name }}-
22+
${{ runner.os }}-build-
23+
${{ runner.os }}-
2624
27-
- name: Run the tests
28-
run: npm test
25+
- name: Install Dependencies
26+
run: npm install
2927

28+
- name: Run the tests
29+
run: npm test

0 commit comments

Comments
 (0)