-
Notifications
You must be signed in to change notification settings - Fork 5
28 lines (27 loc) · 980 Bytes
/
verify.yml
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
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
# SPDX-License-Identifier: 0BSD
name: Verify Commits
on:
pull_request:
branches: [ main ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: Check Code Generator
run: cargo check --package code-generator --locked
- name: Check changed CRDs
run: |
for module in $(git diff --name-only main -- ./kube-custom-resources-rs/src | grep --invert-match lib.rs | xargs --no-run-if-empty -I{} dirname {} | sort --unique | xargs --no-run-if-empty -I{} basename {}); do
echo "testing ${module}"
cargo check --package kube-custom-resources-rs --features "${module}" --locked
done
env:
RUSTFLAGS: "-A warnings"