-
-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (76 loc) · 3.02 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
name: Test
# yamllint disable-line rule:truthy
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:
jobs:
information:
name: Test add-on information
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🚀 Run add-on information action
id: information
uses: ./
- name: 🚀 Check run output
run: |
if [[ "${{ steps.information.outputs.aarch64 }}" != "true" ]]; then
echo "::error ::'aarch64' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.amd64 }}" != "true" ]]; then
echo "::error ::'amd64' does not have the expected value"
exit 1;
fi
archs="["aarch64","amd64","armhf","armv7","i386"]"
if [[ "${{ steps.information.outputs.architectures }}" != "${archs}" ]]; then
echo "::error ::'architectures' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.armhf }}" != "true" ]]; then
echo "::error ::'armhf' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.build }}" != "test/build.json" ]]; then
echo "::error ::'build' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.codenotary_base_image }}" != "[email protected]" ]]; then
echo "::error ::'codenotary_base_image' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.codenotary_signer }}" != "[email protected]" ]]; then
echo "::error ::'codenotary_signer' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.config }}" != "test/config.yaml" ]]; then
echo "::error ::'config' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.description }}" != "This is a test add-on" ]]; then
echo "::error ::'description' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.i386 }}" != "true" ]]; then
echo "::error ::'i386' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.name }}" != "Test Add-on" ]]; then
echo "::error ::'name' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.slug }}" != "test" ]]; then
echo "::error ::'slug' does not have the expected value"
exit 1;
fi
if [[ "${{ steps.information.outputs.target }}" != "test" ]]; then
echo "::error ::'target' does not have the expected value"
exit 1;
fi