tests: Add a check for valid snapshot urls

This pulls the list of snapshots from the rpmrepo API, greps the
codebase for all uses of rpmrepo.osbuild.org that look like a snapshot
name, and then checks to make sure they are still valid.
This commit is contained in:
Brian C. Lane 2023-07-24 16:41:04 -07:00 committed by Alexander Todorov
parent 967570a2a6
commit 8ff4c0c40a
2 changed files with 191 additions and 0 deletions

View file

@ -159,6 +159,17 @@ jobs:
exit "0"
fi
snapshots:
name: "🔍 Check for valid snapshot urls"
runs-on: ubuntu-20.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Check for valid snapshot urls
run: ./tools/check-snapshots --errors-only .
shellcheck:
name: "🐚 Shellcheck"
runs-on: ubuntu-20.04