setup-gitannex-action/.forgejo/workflows/smoke-test.yml
Michael Hanke 5cfaf8aa1e
All checks were successful
Smoke test git-annex setup action / smoke-test (push) Successful in 2m12s
feat: initial implementation
2026-08-18 12:42:18 +02:00

44 lines
1 KiB
YAML

name: Smoke test git-annex setup action
on:
push:
pull_request:
workflow_dispatch:
jobs:
smoke-test:
runs-on: debian-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up git-annex
uses: ./
- name: Smoke test git-annex
shell: bash
run: |
set -euo pipefail
git --version
git annex version
command -v uv
command -v git-annex
test -n "$(git config --global --get user.name)"
test -n "$(git config --global --get user.email)"
mkdir -p /tmp/git-annex-smoke
cd /tmp/git-annex-smoke
git init
git annex init smoke-test-repo
echo "hello" > sample.txt
git add sample.txt
git commit -m "Add sample file"
git annex add sample.txt || true
git annex status || true
# do not run rsync related test, we cheaped out and did not install rsync
git annex test -p '!/rsync remote/'