-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (57 loc) · 2.49 KB
/
test-liquidsoap.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: Test (Liquidsoap)
on: # yamllint disable-line rule:truthy
pull_request:
types: [opened, synchronize]
paths:
- "**/*.liq"
- ".github/workflows/test-liquidsoap.yml"
jobs:
liquidsoap-fmt:
name: liquidsoap script fmt (test liquidsoap scripts formatting)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: 'npm install -g liquidsoap-prettier'
- run: |
ret=0
for file in $(find . -type f -name "*.liq"); do
liquidsoap-prettier -c "${file}" || (echo "${file} is not formatted" && ret=2)
done
[ $ret -ne 0 ] && exit 2
liquidsoap-test-transcoder-stereo:
name: liquidsoap script syntax (transcoder stereo)
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
options: --user root
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: '/usr/bin/liquidsoap -c ./example/liquidsoap/myradio.liq ./scripts/transcoder/00-live.liq'
liquidsoap-test-transcoder-surround:
name: liquidsoap script syntax (transcoder surround)
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
options: --user root
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: '/usr/bin/liquidsoap -c ./example/liquidsoap/myradiosurround.liq ./scripts/transcoder/00-live.liq'
liquidsoap-test-streamer-stereo:
name: liquidsoap script syntax (streamer stereo)
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
options: --user root
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: '/usr/bin/liquidsoap -c ./example/liquidsoap/myradio.liq ./scripts/transcoder/00-live.liq'
liquidsoap-test-streamer-surround:
name: liquidsoap script syntax (streamer surround)
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
options: --user root
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: '/usr/bin/liquidsoap -c ./example/liquidsoap/mystreamersurround.liq ./scripts/streamer/00-live.liq'