Skip to content

Commit 1b5c757

Browse files
authored
Merge pull request #2 from szabgab/github-actions
add github actions with flags as needed
2 parents 6ca1498 + c740a4e commit 1b5c757

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
# schedule:
8+
# - cron: '0 * * * *'
9+
10+
jobs:
11+
generate:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- name: Update rust
17+
run: |
18+
rustup update
19+
20+
- name: Show version
21+
run: |
22+
rustc --version
23+
cargo --version
24+
25+
- name: cargo build
26+
run: |
27+
cargo build --features k8s-openapi/latest
28+
29+
- name: cargo test
30+
run: |
31+
cargo test --features k8s-openapi/latest
32+
33+
- name: Run cargo fmt --check
34+
run: cargo fmt --check
35+
36+
- name: Run clippy
37+
run: cargo clippy --all-targets --features k8s-openapi/latest -- --deny warnings
38+

0 commit comments

Comments
 (0)