From: Shane Jaroch Date: Sat, 17 Jan 2026 10:56:11 +0000 (-0500) Subject: fix: CI workflows, missing target name X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=d3f5f79886fa2bf414a0a715010fd892b78080c3;p=gamesguru%2Fgit-remote-gcrypt.git fix: CI workflows, missing target name --- diff --git a/.github/workflows/compatibility.yaml b/.github/workflows/compatibility.yaml index c9ea0e9..d20a6ff 100644 --- a/.github/workflows/compatibility.yaml +++ b/.github/workflows/compatibility.yaml @@ -7,7 +7,8 @@ on: - cron: "0 0 * * 0" # Weekly on Sundays jobs: - git-versions: + # Validate 3 versions of git + git: name: Git Compatibility (${{ matrix.os }}) runs-on: ${{ matrix.os }} @@ -18,28 +19,39 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install dependencies run: | sudo apt-get update sudo apt-get install -y git curl python3-docutils + - name: Run Tests run: make test - shell-syntax: + # Validate completions for bash, zsh, and fish + shell-bash-zsh-fish: name: Shell Completion Syntax runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - name: Show git version + run: git --version + - name: Install Shells run: | sudo apt-get update sudo apt-get install -y zsh fish - - name: Generate Completions + + - name: Generate Completions (if not up to date) run: make generate + - name: Check Bash Syntax run: bash -n completions/bash/git-remote-gcrypt + - name: Check Zsh Syntax run: zsh -n completions/zsh/_git-remote-gcrypt + - name: Check Fish Syntax run: fish --no-execute completions/fish/git-remote-gcrypt.fish diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 2672054..c0bcffc 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -18,7 +18,7 @@ permissions: jobs: # Handles Ubuntu and macOS - install-unix: + Unix: runs-on: ${{ matrix.os }} env: @@ -53,7 +53,7 @@ jobs: run: make check/install # Handles RedHat (UBI Container) - install-rh: + RedHat: runs-on: ubuntu-latest env: @@ -97,7 +97,7 @@ jobs: - uses: actions/checkout@v4 - name: Fix permissions for Docker - run: chmod -R u+rwX,go+rX . + run: chmod -R 777 . - name: Run tests in Termux run: | diff --git a/Makefile b/Makefile index bb4d81c..3790792 100644 --- a/Makefile +++ b/Makefile @@ -53,9 +53,15 @@ endef .PHONY: check/deps -check/deps: ##H Verify kcov & shellcheck +check/deps: check/deps/shellcheck check/deps/kcov ##H Verify kcov & shellcheck + +.PHONY: check/deps/shellcheck +check/deps/shellcheck: @$(call print_info, --- shellcheck version ---) @shellcheck --version + +.PHONY: check/deps/kcov +check/deps/kcov: @$(call print_info, --- kcov version ---) @kcov --version @@ -133,7 +139,7 @@ test/installer: ##H Test installer logic .PHONY: test/purity -test/purity: check/deps/shellcheck ##H Run logic tests (with native /bin/sh) +test/purity: ##H Run logic tests (with native /bin/sh) @echo "running system tests (native /bin/sh)..." @export GPG_TTY=$$(tty); \ [ -n "$(DEBUG)$(V)" ] && export GCRYPT_DEBUG=1; \ diff --git a/tests/installer-test-completions.sh b/tests/installer-test-completions.sh old mode 100644 new mode 100755 diff --git a/tests/system-test-rsync-simple.sh b/tests/system-test-rsync-simple.sh old mode 100644 new mode 100755