Skip to content

Sync test fixtures

Sync test fixtures #19

---
name: Sync test fixtures
on:
workflow_dispatch:
jobs:
sync_fixtures:
name: Sync test fixtures
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Sync fixtures
id: sync
run: |
TMP_DIR=$(mktemp -d)
curl -fsSL "https://codeload.github.com/dnsimple/dnsimple-developer/tar.gz/refs/heads/main" \
| tar -xz -C "$TMP_DIR"
rsync -a --delete "$TMP_DIR/dnsimple-developer-main/fixtures/v2/" tests/fixtures/v2/
echo "now=$(date +'%Y-%m-%d %H:%M:%S')" >> "$GITHUB_OUTPUT"
- name: Create PR with synced fixtures
uses: peter-evans/create-pull-request@v8
with:
sign-commits: true
add-paths: tests/fixtures/v2/
commit-message: "chore: sync test fixtures as of ${{ steps.sync.outputs.now }}"
branch: "chore/sync-fixtures-${{ github.run_id }}"
title: "chore: Sync fixtures as of ${{ steps.sync.outputs.now }}"
body: |
This PR replaces the fixtures in this repository with those from https://github.com/dnsimple/dnsimple-developer/
## Checklist
- [ ] Close and re-open this PR to trigger the CI workflow (it does not run automatically)
- [ ] Ensure the CI workflow passes before merging