Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add generator #1

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
name: CI
permissions:
checks: write
on:
pull_request:
types: [opened, synchronize, reopened]
Expand All @@ -6,22 +9,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install deps
run: |
#!/bin/bash -e
apt-get update
apt-get install -y make git curl gcc
- name: Install GH CLI
uses: dev-hanz-ops/[email protected]
with:
gh-cli-version: 2.32.0 # optional, see action.yml for current default
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/setup-go@v5
with:
go-version-file: 'v2/go.mod'
- name: make generate
- name: generate
run: make generate
- name: make lint
- name: lint
run: make lint
- name: make test
- name: test
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make test
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '.output/junit*.xml'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.output
target
.k8s
330 changes: 330 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "nmstate-kubernetes-go-apigen"
edition = "2018"
rust-version = "1.58"
version = "0.0.1"

[[bin]]
name = "nmstate-kubernetes-go-apigen"

[dependencies]
anyhow = "1.0.82"
log = "0.4.21"
env_logger = "0.11.3"
regex = "1.10.2"
clap = { version = "4.5.4", features = ["cargo", "derive"] }
syn = {version = "2.0.39", features = ["visit", "extra-traits", "full"]}
convert_case = "0.6.0"
proc-macro2 = "1.0.56"
Loading
Loading