Skip to content

Commit 6a7b80b

Browse files
committed
Move cdxgen checkout to address yarn vs pnpm issue.
Signed-off-by: Caroline Russell <caroline@appthreat.dev>
1 parent 3fa8381 commit 6a7b80b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/snapshot-tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,25 @@ jobs:
2222
steps:
2323

2424
- uses: actions/checkout@v4
25-
26-
- name: Set up pnpm
27-
uses: pnpm/action-setup@v4
25+
with:
26+
path: cdxgen_src
2827

2928
- name: cdxgen, custom-json-diff installs
3029
shell: bash
3130
env:
3231
SHELL: bash
3332
run: |
3433
rm -rf original_snapshots new_snapshots src_repos
34+
cd cdxgen_src
35+
corepack enable pnpm
3536
cdxgen_tarball=$(pnpm pack | tail -1)
3637
npm install -g "$cdxgen_tarball"
37-
git clone https://github.com/appthreat/cdxgen-samples.git original_snapshots
38+
cd ..
3839
python3.12 -m venv .venv
3940
source .venv/bin/activate && pip install -r test/diff/requirements.txt
41+
git clone https://github.com/appthreat/cdxgen-samples.git original_snapshots
42+
cd original_snapshots
43+
git checkout feature/expand_snapshots_3
4044
4145
- name: Generate scripts
4246
run: |

0 commit comments

Comments
 (0)