-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from tangle-network/drew/kube
Add envio project setup and kubernetes
- Loading branch information
Showing
33 changed files
with
3,781 additions
and
1,396 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,36 @@ | ||
name: Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Run unit tests | ||
run: cargo test --lib | ||
|
||
integration: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
k8s: [v1.25, latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: nolar/setup-k3d-k3s@v1 | ||
with: | ||
version: ${{matrix.k8s}} | ||
k3d-name: kube | ||
k3d-args: "--no-lb --no-rollback --k3s-arg --disable=traefik,servicelb,metrics-server@server:*" | ||
|
||
- name: Build | ||
run: cargo build | ||
|
||
- name: Install CRD | ||
run: kubectl apply -f kubernetes/crd.yaml | ||
|
||
- name: Run integration tests | ||
run: cargo test --lib -- --ignored |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Generated by Cargo | ||
target/ | ||
test_project | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
Oops, something went wrong.