-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (49 loc) · 1.42 KB
/
test.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
name: run tests
on:
pull_request:
branches: [ "*" ]
push:
branches:
- "gh-readonly-queue/**/*"
jobs:
testGo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Golang caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: run go tests
run: |
go test -v ./...
env:
RUN_INTEGRATION_TESTS: true
testHelm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
depth: 0
- uses: azure/[email protected]
with:
version: v3.12.0
- name: Set up chart-testing
uses: helm/[email protected]
- run: |
git fetch origin "${{ github.base_ref }}"
# Ensure the chart meets requirements
ct lint --remote origin --target-branch "${{ github.base_ref }}" --charts ./charts/noe
# Ensure the chart can be rendered with default values set and the generated yaml is coherent
helm template ./charts/noe
# Ensure the chart can be rendered with all values set and the generated yaml is coherent
helm template ./charts/noe -f ./charts/noe/values-test-full.yaml