-
Notifications
You must be signed in to change notification settings - Fork 35
49 lines (43 loc) · 1.22 KB
/
knuu_testing.yml
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
name: Knuu Testing
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
merge_group:
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- pkg: "./pkg/..."
timeout: 10m
- pkg: "./e2e/basic"
timeout: 15m
- pkg: "./e2e/system"
timeout: 15m
- pkg: "./e2e/netshaper"
timeout: 60m
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.22.1
uses: actions/[email protected]
with:
go-version: 1.22.1
- name: Check out code into the Go module directory
uses: actions/[email protected]
- name: Setup kubeconfig
env:
KUBECONFIG_FILE: ${{ secrets.KNUU_DEV_KUBECONFIG_FILE }}
run: |
mkdir -p $HOME/.kube
echo "${KUBECONFIG_FILE}" > $HOME/.kube/config
- name: Run Tests
run: make test pkgs=${{ matrix.pkg }} timeout=${{ matrix.timeout }}
env:
KNUU_SKIP_CLEANUP: "false"
KNUU_TIMEOUT: "${{ matrix.timeout }}"
GRAFANA_ENDPOINT: ${{ secrets.GRAFANA_ENDPOINT }}
GRAFANA_USERNAME: ${{ secrets.GRAFANA_USERNAME }}
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }}