From 6957cccad205bd0e220bb952cf79fc33b2c23d80 Mon Sep 17 00:00:00 2001 From: ArtikusHG <24320212+ArtikusHG@users.noreply.github.com> Date: Sun, 19 Nov 2023 11:55:21 +0000 Subject: [PATCH 1/2] feat: check just syntax in build action --- .github/workflows/build.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb478218..b8a61db5 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/*; 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 From 8b363e235340346b39738c599f731aed8514e508 Mon Sep 17 00:00:00 2001 From: ArtikusHG <24320212+ArtikusHG@users.noreply.github.com> Date: Sun, 19 Nov 2023 20:35:34 +0000 Subject: [PATCH 2/2] fix: only check just syntax for .just files --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b8a61db5..3215efcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ jobs: id: check_just_syntax shell: bash run: | - for file in build/ublue-os-just/*; do + for file in build/ublue-os-just/*.just; do if [ -f "$file" ]; then echo $file just --fmt --check --unstable -f $file || { exit 1; }