mirror of
https://hub.psychoinformatics.de/actions/setup-gitannex.git
synced 2026-09-10 05:56:04 +00:00
44 lines
1 KiB
YAML
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/'
|