-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 1.85 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
59
60
61
62
63
64
65
66
name: run tests
on:
push:
pull_request:
merge_group:
jobs:
testGo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.4
- name: Run CI script
run: |
go test -v -cover -covermode=count ./...
# testGCloudIntegration:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version: 1.22.4
# - name: Run CI script
# run: |
# go test -v ./pkg/grafanacloud/...
# env:
# GRAFANA_CLOUD_TOKEN: ${{ secrets.GRAFANA_CLOUD_TOKEN }}
alloy_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22.4'
- run: |
cd pkg/controllers
curl -LO https://github.com/grafana/alloy/releases/download/v1.3.1/alloy-linux-amd64.zip && unzip alloy-linux-amd64.zip
go test -v ./... -args -verify-alloy
testHelm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
depth: 0
- uses: azure/setup-helm@v4.2.0
with:
version: v3.12.0
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1
- run: |
git fetch origin "${{ github.base_ref }}"
# Ensure the chart meets requirements
ct lint --remote origin --target-branch "${{ github.base_ref }}" --charts ./helm-chart/observability-operator
# Ensure the chart can be rendered with default values set and the generated yaml is coherent
helm template ./helm-chart/observability-operator
# Ensure the chart can be rendered with all values set and the generated yaml is coherent
helm template ./helm-chart/observability-operator -f ./helm-chart/observability-operator/values-test-full.yaml