File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
internal/commands/.scripts Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 4040 uses : actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4
4141 with :
4242 go-version-file : go.mod
43+ - name : Set up Python
44+ uses : actions/setup-python@v4
45+ with :
46+ python-version : ' 3.11'
4347 - run : go version
4448 - name : Go Build
4549 run : go build -o ./bin/cx ./cmd
Original file line number Diff line number Diff line change @@ -12,6 +12,15 @@ wget https://sca-downloads.s3.amazonaws.com/cli/latest/ScaResolver-linux64.tar.g
1212tar -xzvf ScaResolver-linux64.tar.gz -C /tmp
1313rm -rf ScaResolver-linux64.tar.gz
1414
15+ # Install pre-commit framework
16+ echo " installing pre-commit framework in a virtual environment..."
17+ python3 -m venv /opt/venv
18+ source /opt/venv/bin/activate
19+ pip install --upgrade pip
20+ pip install pre-commit
21+ export PATH=" /opt/venv/bin:$PATH "
22+ echo " pre-commit installed successfully."
23+
1524# Step 1: Check if the failedTests file exists
1625FAILED_TESTS_FILE=" failedTests"
1726
You can’t perform that action at this time.
0 commit comments