-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (39 loc) · 1.08 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Run Unit Tests
run: cargo test --lib
integration:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
cluster_name: "k8scluster"
- name: Build RPC
run: docker build -t rpc:1.0 -f docker/dockerfile.rpc .
- name: Load Docker Image
run: kind load docker-image rpc:1.0 --name k8scluster
- name: Build Daemon
run: docker build -t daemon:1.0 -f docker/dockerfile.daemon .
- name: Load Docker Image
run: kind load docker-image daemon:1.0 --name k8scluster
- name: Apply main manifest
run: kubectl apply -f test/manifest.yaml
- name: Validate
run: ./test/expect