Skip to content

Commit 6e00245

Browse files
ci: added tests on pr
1 parent f2cdce1 commit 6e00245

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
unit:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-go@v5
12+
with:
13+
go-version: '1.22'
14+
- run: go mod download
15+
- run: go test ./...
16+
17+
chart:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
k8s_version:
22+
- 1.29.5
23+
- 1.30.0
24+
- 1.30.1
25+
26+
steps:
27+
- name: Check out the repo
28+
uses: actions/checkout@v4
29+
- uses: azure/setup-helm@v4
30+
- run: helm template prompage chart/ > templated.yaml
31+
- uses: docker://ghcr.io/yannh/kubeconform:latest
32+
with:
33+
entrypoint: '/kubeconform'
34+
args: '-summary -output json --kubernetes-version ${{ matrix.k8s_version }} templated.yaml'

0 commit comments

Comments
 (0)