-
Notifications
You must be signed in to change notification settings - Fork 63
41 lines (38 loc) · 1.07 KB
/
common.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Common CI
on:
pull_request:
branches: [ main ]
jobs:
audit:
name: Audit ${{ matrix.project }}
runs-on: ubuntu-latest
strategy:
matrix:
project: [apollo, athena, stitch]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Audit NPM
run: npm audit --production
working-directory: ./packages/${{ matrix.project }}
continue-on-error: true
detect-secrets:
name: Detect Secrets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install detect-secrets
run: pip install --upgrade git+https://github.com/ibm/[email protected]+ibm.59.dss#egg=detect-secrets
- name: Install Lerna
run: npm install -g lerna
- name: Run detect-secrets
run: lerna run detect-secrets --stream
continue-on-error: true