-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a job to check zot config examples (and fix existing examples) (#…
…2322) * fix: Add credentials config verification (cherry picked from commit e7fdfa0) Signed-off-by: Andrei Aaron <[email protected]> * fix: Update golang version to 1.21.x Signed-off-by: onidoru <[email protected]> Signed-off-by: Nikita Kotikov <[email protected]> (cherry picked from commit cbc0f89) Signed-off-by: Andrei Aaron <[email protected]> * fix: LDAP credentials files are now required, add more tests Signed-off-by: onidoru <[email protected]> Signed-off-by: Nikita Kotikov <[email protected]> (cherry picked from commit b74366d) Signed-off-by: Andrei Aaron <[email protected]> * fix: Update error handling, add more tests Signed-off-by: onidoru <[email protected]> Signed-off-by: Nikita Kotikov <[email protected]> (cherry picked from commit 8a61bbc) Signed-off-by: Andrei Aaron <[email protected]> * fix: Add coverage Signed-off-by: Andrei Aaron <[email protected]> --------- Signed-off-by: onidoru <[email protected]> Signed-off-by: Nikita Kotikov <[email protected]> Signed-off-by: Andrei Aaron <[email protected]> Co-authored-by: onidoru <[email protected]> Co-authored-by: Nikita Kotikov <[email protected]>
- Loading branch information
1 parent
375c35c
commit 8b4abc6
Showing
7 changed files
with
270 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Verify Example Config Files" | ||
|
||
# Validate all example config files are relevant and valid. | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: [main] | ||
release: | ||
types: | ||
- published | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
verify-config: | ||
name: Verify Config Files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install go | ||
uses: actions/setup-go@v5 | ||
with: | ||
cache: false | ||
go-version: 1.21.x | ||
- name: Cache go dependencies | ||
id: cache-go-dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-mod- | ||
- name: Install go dependencies | ||
if: steps.cache-go-dependencies.outputs.cache-hit != 'true' | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
go mod download | ||
- name: run verify-config | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
make verify-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters