Skip to content

Commit bb1bc23

Browse files
Added pre-commit framework installation to the workflow
1 parent 33107cf commit bb1bc23

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
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

internal/commands/.scripts/integration_up.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ wget https://sca-downloads.s3.amazonaws.com/cli/latest/ScaResolver-linux64.tar.g
1212
tar -xzvf ScaResolver-linux64.tar.gz -C /tmp
1313
rm -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
1625
FAILED_TESTS_FILE="failedTests"
1726

0 commit comments

Comments
 (0)