Skip to content

Commit

Permalink
feat(ci): add liquidsoap-prettier formatting test
Browse files Browse the repository at this point in the history
  • Loading branch information
uZer committed Jun 24, 2024
1 parent 032e4e4 commit f47b75a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/test-liquidsoap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,21 @@ on: # yamllint disable-line rule:truthy
- ".github/workflows/test-liquidsoap.yml"

jobs:
liquidsoap-fmt:
name: 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 Test Transcoder Stereo
name: Test Liquidsoap Transcoder Stereo
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
Expand All @@ -19,7 +32,7 @@ jobs:
- run: '/usr/bin/liquidsoap -c ./example/liquidsoap/myradio.liq ./scripts/transcoder/00-live.liq'

liquidsoap-test-transcoder-surround:
name: Liquidsoap Test Transcoder Surround
name: Test Liquidsoap Transcoder Surround
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
Expand All @@ -29,7 +42,7 @@ jobs:
- run: '/usr/bin/liquidsoap -c ./example/liquidsoap/myradiosurround.liq ./scripts/transcoder/00-live.liq'

liquidsoap-test-streamer-stereo:
name: Liquidsoap Test Streamer Stereo
name: Test Liquidsoap Streamer Stereo
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
Expand All @@ -39,7 +52,7 @@ jobs:
- run: '/usr/bin/liquidsoap -c ./example/liquidsoap/myradio.liq ./scripts/transcoder/00-live.liq'

liquidsoap-test-streamer-surround:
name: Liquidsoap Test Streamer Surround
name: Test Liquidsoap Streamer Surround
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
Expand Down

0 comments on commit f47b75a

Please sign in to comment.