Skip to content

Commit cd7ffbd

Browse files
Merge pull request #6969
2 parents 826afcd + 96aee20 commit cd7ffbd

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,43 @@ jobs:
134134
if: matrix.check == 'audit'
135135
run: yarn run improved-yarn-audit --min-severity high
136136

137+
license-analysis:
138+
runs-on: ubuntu-latest
139+
140+
steps:
141+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
142+
143+
- name: Setup node 22
144+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
145+
with:
146+
node-version: 22
147+
148+
- name: restore lerna dependencies
149+
id: lerna-cache
150+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
151+
with:
152+
path: |
153+
node_modules
154+
modules/*/node_modules
155+
key: ${{ runner.os }}-node22-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('package.json') }}
156+
157+
- name: Install Packages
158+
if: steps.lerna-cache.outputs.cache-hit != 'true'
159+
run: yarn install --with-frozen-lockfile --ignore-scripts
160+
161+
- name: build packages
162+
env:
163+
# Workaround for https://github.com/nodejs/node/issues/51555
164+
DISABLE_V8_COMPILE_CACHE: '1'
165+
run: yarn run postinstall
166+
167+
- name: Run Fossa Analysis
168+
uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0
169+
with:
170+
api-key: ${{ secrets.FOSSA_API_KEY }}
171+
branch: ${{ github.head_ref || github.ref_name }}
172+
project: BitGo/BitGoJS
173+
137174
browser-test:
138175
runs-on: ubuntu-22.04
139176

0 commit comments

Comments
 (0)