Skip to content

Commit

Permalink
Merge pull request #18 from tangle-network/drew/kube
Browse files Browse the repository at this point in the history
Add envio project setup and kubernetes
  • Loading branch information
drewstone authored Dec 20, 2024
2 parents ba5260c + 36d861a commit 7546355
Show file tree
Hide file tree
Showing 33 changed files with 3,781 additions and 1,396 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
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
1 change: 1 addition & 0 deletions .gitignore
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
Expand Down
Loading

0 comments on commit 7546355

Please sign in to comment.