-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ca8a6e6
Showing
36 changed files
with
5,122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
**/.DS_Store | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/charts | ||
**/docker-compose* | ||
**/compose.y*ml | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
/bin | ||
/target | ||
LICENSE | ||
README.md | ||
data/ | ||
script.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI Pipeline | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "README.md" | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "README.md" | ||
|
||
concurrency: | ||
group: "${{ github.workflow }} @ ${{ github.head_ref || github.ref }}" | ||
cancel-in-progress: true | ||
|
||
env: | ||
RUST_VERSION: 1.81.0 | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
format-and-clippy: | ||
uses: ./.github/workflows/format-workflow.yaml | ||
secrets: inherit | ||
tests: | ||
uses: ./.github/workflows/tests-workflow.yaml | ||
secrets: inherit | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: [format-and-clippy, tests] | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- name: "library" | ||
path: "." | ||
- name: "client" | ||
path: "snap-kube-client" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
components: rustfmt, clippy | ||
toolchain: ${{ env.RUST_VERSION }} | ||
- name: Cargo Build ${{ matrix.name }} | ||
run: cargo build --verbose | ||
working-directory: ${{ matrix.path }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Format & Clippy Pipeline | ||
|
||
on: | ||
workflow_call: | ||
|
||
env: | ||
RUST_VERSION: 1.81.0 | ||
|
||
jobs: | ||
format-and-clippy: | ||
name: Cargo format & Clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
components: rustfmt, clippy | ||
toolchain: ${{ env.RUST_VERSION }} | ||
- name: Rustfmt Check | ||
uses: actions-rust-lang/rustfmt@v1 | ||
- name: Lint with Clippy | ||
run: cargo clippy --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Tests Pipeline | ||
|
||
on: | ||
workflow_call: | ||
|
||
env: | ||
RUST_VERSION: 1.81.0 | ||
|
||
jobs: | ||
tests: | ||
name: Run Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
components: rustfmt, clippy | ||
toolchain: ${{ env.RUST_VERSION }} | ||
- name: Install cargo-nextest | ||
uses: baptiste0928/cargo-install@v3 | ||
with: | ||
crate: cargo-nextest | ||
- name: Run tests | ||
run: cargo nextest run --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
debug/ | ||
target/ | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# Added by cargo | ||
/target | ||
.idea/ | ||
.DS_Store | ||
.zed/ | ||
|
||
|
||
# Other | ||
script.sh | ||
*.cast | ||
*.gif | ||
data/ | ||
*.tgz |
Oops, something went wrong.