Skip to content

Commit a53d3f0

Browse files
author
Shayan Ahmadi
committed
test CI
1 parent cb59463 commit a53d3f0

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,29 @@ on:
66

77
jobs:
88
build-and-test:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v3
12-
- run: npm ci
13-
- name: Build the library
14-
run: npm run build
15-
- name: Run unit tests
16-
run: npm run test
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
15+
- name: Install git-secrets
16+
run: |
17+
git clone https://github.com/awslabs/git-secrets.git
18+
cd git-secrets
19+
sudo make install
20+
21+
- name: Configure git-secrets
22+
run: |
23+
git secrets --register-aws
24+
25+
- name: Run git-secrets scan
26+
run: |
27+
git secrets --scan-history
28+
29+
30+
- run: npm ci
31+
- name: Build the library
32+
run: npm run build
33+
- name: Run unit tests
34+
run: npm run test

0 commit comments

Comments
 (0)