37 lines
976 B
YAML
37 lines
976 B
YAML
name: git-annex-mirror action smoke test
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.forgejo/workflows/**'
|
|
- 'action.yml'
|
|
- 'git-annex-ref-mirror'
|
|
pull_request:
|
|
paths:
|
|
- '.forgejo/workflows/**'
|
|
- 'action.yml'
|
|
- 'git-annex-ref-mirror'
|
|
jobs:
|
|
test:
|
|
runs-on: debian-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup git-annex
|
|
uses: https://hub.datalad.org/git-annex/setup-gitannex-action@v1
|
|
|
|
- name: Set up test fixture
|
|
run: |
|
|
./tests/setup-git-annex-fixture.sh
|
|
|
|
- name: Run Git-Annex Mirror Action
|
|
uses: ./
|
|
with:
|
|
repo: ${{ env.MIRROR_REPO }}
|
|
remote: upstream
|
|
|
|
- name: Verify mirror refs
|
|
run: |
|
|
git -C "$MIRROR_REPO" show-ref --verify refs/heads/main
|
|
git -C "$MIRROR_REPO" show-ref --verify refs/heads/old-branch
|
|
git -C "$MIRROR_REPO" show-ref --verify refs/heads/git-annex
|