Skip to content

Commit 82070dc

Browse files
authored
Merge pull request #32 from shivaCode-2/shivaCode-2-patch-1
Update vi-analyzer-container.yml
2 parents 9e046d7 + 581f56d commit 82070dc

2 files changed

Lines changed: 29 additions & 22 deletions

File tree

.github/workflows/vi-analyzer-container.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ jobs:
1515
uses: actions/checkout@v3
1616

1717
# Authenticate to Docker Hub
18-
- name: Log in to Docker Container Registry
18+
- name: Log in to GitHub Container Registry
1919
uses: docker/login-action@v2
2020
with:
21-
registry: docker.io
22-
username: ${{ secrets.DOCKER_UNAME }}
23-
password: ${{ secrets.DOCKER_PASSWD }}
21+
registry: ghcr.io
22+
username: ${{ secrets.GHCR_UNAME }}
23+
password: ${{ secrets.GHCR_PAT }}
2424

2525
- name: Pull Docker Image from Docker Hub
26-
run: docker pull docker.io/shivacode02/labview_linux:2025q3_beta
26+
run: docker pull ghcr.io/shivacode-2/labview:2025q3-linux-beta
2727

2828
- name: Run LabVIEWCLI Operations
2929
run: |
3030
docker run --rm \
3131
-v "${{ github.workspace }}:/workspace" \
32-
docker.io/shivacode02/labview_linux:2025q3_beta \
32+
ghcr.io/shivacode-2/labview:2025q3-linux-beta \
3333
bash -c "cd /workspace && chmod +x runlabview.sh && ./runlabview.sh"
3434

runlabview.sh

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,50 @@
11
#!/bin/bash
2-
# Verify that the configuration file exists.
32
CONFIG_FILE='/workspace/Test-VIs/viaPassCase.viancfg'
43
LABVIEW_PATH='/usr/local/natinst/LabVIEW-2025-64/labviewprofull'
54
REPORT_PATH='/usr/local/natinst/ContainerExamples/Results.txt'
6-
MASSCOMPILE_DIR='/usr/local/natinst/LabVIEW-2025-64/examples/Arrays'
5+
MASSCOMPILE_DIR='/workspace/Test-VIs'
6+
7+
# Verify that the configuration file exists.
78
if [ ! -f "$CONFIG_FILE" ]; then
89
echo "Error: Configuration file not found at $CONFIG_FILE, exiting...!"
910
exit 1
1011
fi
11-
echo "────────────────────────────────────────────────────────────"
12-
echo "(Debug) Running LabVIEWCLI MassCompile with following parameters:"
13-
echo "(Debug) DirectorytoCompile: $MASSCOMPILE_DIR"
14-
echo "(Debug) LabVIEWPath: $LABVIEW_PATH"
12+
13+
14+
echo "Running LabVIEWCLI MassCompile with following parameters:"
15+
echo "DirectorytoCompile: $MASSCOMPILE_DIR"
1516

1617
OUTPUT_MASSCOMPILE=$(LabVIEWCLI -LogToConsole TRUE \
1718
-OperationName MassCompile \
1819
-DirectoryToCompile $MASSCOMPILE_DIR \
1920
-LabVIEWPath $LABVIEW_PATH)
2021

21-
echo "(Debug) Done Running Masscompile Operation"
22+
echo " "
23+
echo "Done Running Masscompile Operation"
2224
echo "Printing Results..."
25+
echo " "
26+
echo "########################################################################################"
2327
echo $OUTPUT_MASSCOMPILE
24-
echo "────────────────────────────────────────────────────────────"
28+
echo "########################################################################################"
29+
echo " "
2530

26-
echo "(Debug) Running LabVIEWCLI VIAnalyzer with the following parameters:"
27-
echo "(Debug) ConfigPath: $CONFIG_FILE"
28-
echo "(Debug) ReportPath: $REPORT_PATH"
29-
echo "(Debug) LabVIEWPath: $LABVIEW_PATH"
31+
echo "Running LabVIEWCLI VIAnalyzer with the following parameters:"
32+
echo "ConfigPath: $CONFIG_FILE"
33+
echo "ReportPath: $REPORT_PATH"
34+
echo " "
3035

31-
# Run the LabVIEWCLI command.
36+
# Run the LabVIEWCLI VIA command.
3237
OUTPUT=$(LabVIEWCLI -LogToConsole TRUE \
3338
-OperationName RunVIAnalyzer \
3439
-ConfigPath $CONFIG_FILE \
3540
-ReportPath $REPORT_PATH \
3641
-LabVIEWPath $LABVIEW_PATH)
3742

3843
echo "Done running of VI Analyzer Tests"
39-
echo "Print Report..."
40-
echo "────────────────────────────────────────────────────────────"
44+
echo "Printing Results..."
45+
echo " "
46+
echo "########################################################################################"
4147
cat "$REPORT_PATH"
42-
echo "────────────────────────────────────────────────────────────"
4348

4449
# 1) Extract the number from the report file, anchor to “Failed Tests”
4550
FAILED_COUNT=$(
@@ -60,8 +65,10 @@ echo "Number of failed tests: $FAILED_COUNT"
6065
# 4) Exit based on count
6166
if (( FAILED_COUNT > 0 )); then
6267
echo "✖ Some tests failed. Exiting with error."
68+
echo "########################################################################################"
6369
exit 1
6470
else
6571
echo "✔ All tests passed."
72+
echo "########################################################################################"
6673
exit 0
6774
fi

0 commit comments

Comments
 (0)