Skip to content

Commit db7e259

Browse files
add validation tests
1 parent 8cbfdb5 commit db7e259

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/unity-build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,30 @@ jobs:
7474
shell: bash
7575
run: |
7676
unity-cli activate-license --license personal --email "${{ secrets.UNITY_USERNAME }}" --password "${{ secrets.UNITY_PASSWORD }}"
77+
- name: Print log paths
78+
shell: bash
79+
run: |
80+
HUB_LOG_PATH=$(unity-cli hub-logs)
81+
LICENSING_CLIENT_LOG_PATH=$(unity-cli licensing-client-logs)
82+
LICENSING_AUDIT_LOG_PATH=$(unity-cli licensing-audit-logs)
83+
84+
echo "Hub Log Path: ${HUB_LOG_PATH}"
85+
echo "Licensing Client Log Path: ${LICENSING_CLIENT_LOG_PATH}"
86+
echo "Licensing Audit Log Path: ${LICENSING_AUDIT_LOG_PATH}"
87+
88+
# verify that the log files exist
89+
if [ ! -f "${LICENSING_CLIENT_LOG_PATH}" ]; then
90+
echo "Error: Licensing Client log file does not exist at ${LICENSING_CLIENT_LOG_PATH}"
91+
exit 1
92+
fi
93+
if [ ! -f "${LICENSING_AUDIT_LOG_PATH}" ]; then
94+
echo "Error: Licensing Audit log file does not exist at ${LICENSING_AUDIT_LOG_PATH}"
95+
exit 1
96+
fi
97+
if [ ! -f "${HUB_LOG_PATH}" ]; then
98+
echo "Error: Hub log file does not exist at ${HUB_LOG_PATH}"
99+
exit 1
100+
fi
77101
- name: Create Unity Project
78102
if : ${{ matrix.unity-version != 'none' }}
79103
shell: bash

0 commit comments

Comments
 (0)