]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
ci: add nop versions of all scripts to our integration tests
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 1 Aug 2024 07:53:38 +0000 (09:53 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 1 Aug 2024 11:23:25 +0000 (13:23 +0200)
.github/workflows/ci.yml

index 3f71fe4f669f42bdd198e5253fd3bfd5d9751b10..19ae998a7f45343417899bd47cc54059edaabc90 100644 (file)
@@ -162,6 +162,24 @@ jobs:
         DefaultDeviceTimeoutSec=180
         EOF
 
+        # fail if the script already exists, to avoid hard to debug CI errors
+        [[ -f mkosi.configure ]] && exit 1
+        tee mkosi.configure <<EOF
+        echo "Hello from inside mkosi.configure!" >&2
+        cat
+        EOF
+        chmod +x mkosi.configure
+
+        # prepare and postinst are already used in CI
+        for script in sync build finalize postoutput clean
+        do
+            [[ -f "mkosi.${script}" ]] && exit 1
+            tee "mkosi.${script}" <<TOK
+        echo "Hello from inside mkosi.${script}" >&2
+        TOK
+            chmod +x "mkosi.${script}"
+        done
+
     - name: Run integration tests
       run: |
         sudo --preserve-env \