mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
3a349dccec
Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
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@v6
|
|
- name: Install go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
cache: false
|
|
go-version: 1.25.x
|
|
- name: Cache go dependencies
|
|
id: cache-go-dependencies
|
|
uses: actions/cache@v5
|
|
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
|