Skip to content

Commit 4eb5d80

Browse files
committed
Verify the output variables are correct
1 parent 3484a27 commit 4eb5d80

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

.github/workflows/verify.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,43 @@ jobs:
1717
uses: actions/checkout@v6
1818

1919
- name: run setup-powerpoint
20+
id: setup
2021
uses: ./
2122

2223
- name: verify installation
2324
run: |
24-
if [ ! -d "/Applications/Microsoft PowerPoint.app" ]; then
25-
echo "Microsoft PowerPoint is not installed"
25+
expected_path="/Applications/Microsoft PowerPoint.app"
26+
expected_package="Microsoft_PowerPoint_16.103.25113013_Updater.pkg"
27+
expected_url="https://officecdn.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/${expected_package}"
28+
expected_version='16.103.3'
29+
expected_build='25113013'
30+
31+
if [ "${{ steps.setup.outputs.path }}" != "$expected_path" ]; then
32+
echo "Action output 'path' was '${{ steps.setup.outputs.path }}' but expected '$expected_path'"
2633
exit 1
2734
fi
28-
echo "Microsoft PowerPoint is installed"
35+
36+
if [ "${{ steps.setup.outputs.version }}" != "$expected_version" ]; then
37+
echo "Action output 'version' was '${{ steps.setup.outputs.version }}' but expected '$expected_version'"
38+
exit 1
39+
fi
40+
41+
if [ "${{ steps.setup.outputs.build }}" != "$expected_build" ]; then
42+
echo "Action output 'build' was '${{ steps.setup.outputs.build }}' but expected '$expected_build'"
43+
exit 1
44+
fi
45+
46+
if [ "${{ steps.setup.outputs.package }}" != "$expected_package" ]; then
47+
echo "Action output 'package' was '${{ steps.setup.outputs.package }}' but expected '$expected_package'"
48+
exit 1
49+
fi
50+
51+
if [ "${{ steps.setup.outputs.installer-url }}" != "$expected_url" ]; then
52+
echo "Action output 'installer-url' was '${{ steps.setup.outputs.installer-url }}' but expected '$expected_url'"
53+
exit 1
54+
fi
55+
56+
echo "Action outputs match installed Microsoft PowerPoint metadata"
2957
3058
- name: troubleshoot desktop
3159
run: |

0 commit comments

Comments
 (0)