-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.09 KB
/
test.yml
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
name: Verify Configuration
on: [push, pull_request]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Verify 'wails.json' file exists.
shell: bash
run: |
if [ ! -f ./wails.json ]; then
echo -e "\033[31mError: wails.json not found in the root directory!"
exit 1
fi
- name: Read properties.
shell: bash
run: |
PROJ_NAME=$(jq -r '.name' ./wails.json)
if [ -z "$PROJ_NAME" ]; then
echo -e "\033[31mError: key `name` empty or not found in wails.json!"
exit 1
fi
echo -e "\033[32mProject name is '$PROJ_NAME'"
OUTPUT_NAME=$(jq -r '.outputfilename' ./wails.json)
if [ -z "$OUTPUT_NAME" ]; then
echo -e "\033[31mError: key `outputfilename` empty or not found in wails.json!"
exit 1
fi
echo -e "\033[32mOutput file (binary) name is '$OUTPUT_NAME'"