From ac88b3a7e0e7f4280f161dd26575bae1aef5f789 Mon Sep 17 00:00:00 2001 From: ArtikusHG <24320212+ArtikusHG@users.noreply.github.com> Date: Sun, 19 Nov 2023 20:40:13 +0000 Subject: [PATCH] feat: check just syntax in build action (fix #152) (#155) * feat: check just syntax in build action * fix: only check just syntax for .just files --------- Co-authored-by: Kyle Gospodnetich --- .github/workflows/build.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb478218..3215efcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,6 +38,21 @@ jobs: fi echo "alias_tags=${alias_tags[*]}" >> $GITHUB_OUTPUT + - name: Install just + id: install_just + uses: extractions/setup-just@v1 + + - name: Check just syntax + id: check_just_syntax + shell: bash + run: | + for file in build/ublue-os-just/*.just; do + if [ -f "$file" ]; then + echo $file + just --fmt --check --unstable -f $file || { exit 1; } + fi + done + # Build image using Buildah action - name: Build Image id: build_image