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:
parent
967570a2a6
commit
8ff4c0c40a
2 changed files with 191 additions and 0 deletions
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue