-
Notifications
You must be signed in to change notification settings - Fork 1.2k
30 lines (28 loc) · 788 Bytes
/
test.yaml
File metadata and controls
30 lines (28 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: test
on:
workflow_dispatch:
pull_request:
branches: [main]
jobs:
manifests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Flux CLI
uses: fluxcd/flux2/action@main
- name: Setup Flux Schema CLI
uses: fluxcd/flux-schema/actions/setup@main
- name: Validate manifests
uses: fluxcd/flux-schema/actions/validate@main
with:
path: '.'
config: '.fluxschema.yml'
- name: Validate API versions
run: |
flux migrate -f . --yes
if [[ $(git diff --stat) != '' ]]; then
git --no-pager diff
echo 'deprecated API versions found, run flux migrate and commit changes'
exit 1
fi