forked from confidential-containers/cloud-api-adaptor
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (64 loc) · 1.74 KB
/
controllers.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright Confidential Containers Contributors
# SPDX-License-Identifier: Apache-2.0
#
# Run tests for peerpod and peerpodconfig controllers.
---
name: controllers
on:
pull_request:
workflow_dispatch:
jobs:
peerpodconfig_job:
name: peerpodconfig-ctrl
runs-on: ubuntu-latest
defaults:
run:
working-directory: peerpodconfig-ctrl
strategy:
matrix:
go_version:
- "1.20.7"
steps:
- name: Checkout the pull request code
uses: actions/checkout@v3
- name: Setup Golang version ${{ matrix.go_version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
- name: Verify go modules and manifests
run: make verify
- name: Build the controller manager
run: make build
- name: Run unit tests
run: make test
- name: Build the controller image
run: make docker-build
peerpod_job:
name: peerpod-ctrl
runs-on: ubuntu-latest
defaults:
run:
working-directory: peerpod-ctrl
strategy:
matrix:
go_version:
- "1.20.7"
steps:
- name: Checkout the pull request code
uses: actions/checkout@v3
- name: Install build dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libvirt-dev
- name: Setup Golang version ${{ matrix.go_version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
- name: Verify go modules and manifests
run: make verify
- name: Build the controller manager
run: make build
- name: Run unit tests
run: make test
- name: Build the controller image
run: make docker-build