Skip to content

Commit

Permalink
Fixed sca issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ninadbstack committed Mar 5, 2024
1 parent cd0291c commit 7d522cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
workflow_dispatch:
inputs:
branch:
description: Used to set which branch of CLI to use for current run
required: false
type: string
default: master
Expand Down Expand Up @@ -40,16 +41,19 @@ jobs:
- run: yarn
- name: Set up @percy/cli from git
if: ${{ github.event_name == 'workflow_dispatch' }}
env:
BRNACH: ${{ github.event.inputs.branch }}
WORKSPACE: ${{ github.workspace }}
run: |
cd /tmp
git clone --branch ${{ github.event.inputs.branch }} --depth 1 https://github.com/percy/cli
git clone --branch "$BRANCH" --depth 1 https://github.com/percy/cli
cd cli
PERCY_PACKAGES=`find packages -mindepth 1 -maxdepth 1 -type d | sed -e 's/packages/@percy/g' | tr '\n' ' '`
git log -1
yarn
yarn build
yarn global:link
cd ${{ github.workspace }}
cd "$WORKSPACE"
yarn remove @percy/cli && yarn link `echo $PERCY_PACKAGES`
npx percy --version
- run: yarn test:coverage

0 comments on commit 7d522cc

Please sign in to comment.