forked from awslabs/mountpoint-s3-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1019 Bytes
/
Copy pathcontroller-tests.yaml
File metadata and controls
38 lines (33 loc) · 1019 Bytes
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
name: Controller tests
on:
push:
branches: ["main", "feature/*"]
pull_request:
branches: ["main", "feature/*"]
merge_group:
types: ["checks_requested"]
jobs:
build_matrix:
name: Build Matrix
uses: ./.github/workflows/build_matrix.yaml
controller_test:
needs: ["build_matrix"]
strategy:
matrix:
kubernetes-version: ${{ fromJson(needs.build_matrix.outputs.matrix)['kubernetes-version'] }}
runs-on: ubuntu-latest
env:
# envtest doesn't support all versions, here K8S_VERSION is a full version like 1.28.13,
# and in order to get latest supported version by envtest we convert it to 1.28.
K8S_VERSION: "${{ matrix.kubernetes-version }}"
ENVTEST_K8S_VERSION: "${K8S_VERSION%.*}"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Run Controller Tests
run: |
make e2e-controller